summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Gupta <guptaank@codeaurora.org>2016-09-14 17:36:28 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-21 17:08:50 -0700
commit4316b7a8870cd316bcf6524bc96de6b3f9633fde (patch)
tree9f8d67e7150e16b25c0cac084daffe034e21a0a8
parent8f5b5bd9f026671aa6107de9fcfd8732a58a9631 (diff)
qcacld-3.0: Fix check while processing lim_ndp_delete_peers
If the peer is not present in the deleted list, this function frees the resources for that peer and add it to the deleted list. If the peer is already in the deleted list, do nothing and continue to scan for other peers. Incorrectly checking the return value qdf_mem_cmp make the above functionality broken. Fix the check for return value of qdf_mem_cmp to allow the proper processing of the peers in deleted list. Change-Id: Ica97b3bcaa651e2ca5935beb1381e9fc5b196e8a CRs-Fixed: 1067411
-rw-r--r--core/mac/src/pe/nan/nan_datapath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mac/src/pe/nan/nan_datapath.c b/core/mac/src/pe/nan/nan_datapath.c
index 6a1fd99f8a1c..3bed714cdf2c 100644
--- a/core/mac/src/pe/nan/nan_datapath.c
+++ b/core/mac/src/pe/nan/nan_datapath.c
@@ -310,7 +310,7 @@ static void lim_ndp_delete_peers(tpAniSirGlobal mac_ctx,
/* Check if this peer is already in the deleted list */
found = false;
for (j = 0; j < deleted_num && !found; j++) {
- if (qdf_mem_cmp(
+ if (!qdf_mem_cmp(
&deleted_peers[j].bytes,
&ndp_map[i].peer_ndi_mac_addr.bytes,
QDF_MAC_ADDR_SIZE)) {