From a44ae3f2a344cb3d16a8bc8526bd7a439c6d95db Mon Sep 17 00:00:00 2001 From: Srinivas Dasari Date: Fri, 7 Feb 2020 20:00:58 +0530 Subject: [PATCH] qcacld-3.0: Send appropriate NDP peer mac address for remove peer Currently, wma->peer_macaddr is passed as peer mac address for NDP peer removal. This gets filled only when PEER_STATS_INFO is queried from firmware. This is not the right mac address to be sent for peer removal. Driver might attempt to remove an invalid peer(or NULL) which leads to assertion in wma_remove_peer. Get the peer mac address from tpDeleteStaParams which is sent from lim and pass it to wma_remove_peer. Change-Id: I90beb7edc1d6ad5790ed972dcb9d3ac42bc04ea7 CRs-Fixed: 2617918 --- core/wma/src/wma_nan_datapath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wma/src/wma_nan_datapath.c b/core/wma/src/wma_nan_datapath.c index eec02ab2447c..8812954fccb0 100644 --- a/core/wma/src/wma_nan_datapath.c +++ b/core/wma/src/wma_nan_datapath.c @@ -118,7 +118,7 @@ send_rsp: void wma_delete_sta_req_ndi_mode(tp_wma_handle wma, tpDeleteStaParams del_sta) { - wma_remove_peer(wma, wma->peer_macaddr.bytes, + wma_remove_peer(wma, del_sta->staMac, del_sta->smesessionId, false); del_sta->status = QDF_STATUS_SUCCESS;