Browse Source

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
Srinivas Dasari 5 years ago
parent
commit
a44ae3f2a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/wma/src/wma_nan_datapath.c

+ 1 - 1
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;