qcacmn: Pass module ID to get peer reference

New approach requires module IDs to be passed to
acquire and release peer references

Hence pass module ID to acquire and release the
peer reference

CRs-Fixed: 2755560
Change-Id: Id351179da68f6ca30f13710a47575f3ff550ada3
This commit is contained in:
phadiman
2020-08-14 14:15:16 +05:30
committed by snandini
parent e2b00339f3
commit 9a47fcc650

View File

@@ -9736,18 +9736,14 @@ static void *dp_peer_get_wlan_stats_ctx(struct cdp_soc_t *soc_hdl,
if (mac_addr) {
peer = dp_peer_find_hash_find(soc, mac_addr,
0, vdev_id);
0, vdev_id,
DP_MOD_ID_CDP);
if (!peer)
return NULL;
if (peer->delete_in_progress) {
dp_peer_unref_delete(peer);
return NULL;
}
wlanstats_ctx = peer->wlanstats_ctx;
dp_peer_unref_delete(peer);
dp_peer_unref_delete(peer, DP_MOD_ID_CDP);
}
return wlanstats_ctx;