|
@@ -178,7 +178,8 @@ tgt_mc_cp_stats_prepare_raw_peer_rssi(struct wlan_objmgr_psoc *psoc,
|
|
|
peer_rssi_iterator, &ev,
|
|
|
true, WLAN_CP_STATS_ID);
|
|
|
} else {
|
|
|
- peer = wlan_objmgr_get_peer(psoc, last_req->pdev_id, mac_addr, WLAN_CP_STATS_ID);
|
|
|
+ peer = wlan_objmgr_get_peer(psoc, last_req->pdev_id,
|
|
|
+ mac_addr, WLAN_CP_STATS_ID);
|
|
|
if (!peer) {
|
|
|
cp_stats_err("peer[%pM] is null", mac_addr);
|
|
|
goto end;
|
|
@@ -522,8 +523,8 @@ tgt_mc_cp_stats_prepare_n_send_raw_station_stats(struct wlan_objmgr_psoc *psoc,
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- peer = wlan_objmgr_get_peer(psoc, last_req->peer_mac_addr,
|
|
|
- WLAN_CP_STATS_ID);
|
|
|
+ peer = wlan_objmgr_get_peer(psoc, last_req->pdev_id,
|
|
|
+ last_req->peer_mac_addr, WLAN_CP_STATS_ID);
|
|
|
if (!peer) {
|
|
|
cp_stats_err("peer object is null");
|
|
|
goto end;
|