qcacld-3.0: Fix get sap connected sta info fcs counter always 0
Stats event from target might have several sub events, and some event has no peer stats but have adv/ext2 peer stats. Check ext/ext2 peer stats even no peer stats in target_if_cp_stats_extract_peer_stats(). Fix copy adv stats size error in tgt_mc_cp_stats_prepare_n_send_raw_station_stats(). Although get_station_stats_cb and get_peer_stats_cb is union callbacks, better to assign to get_station_stats_cb because it is for TYPE_STATION_STATS. Change-Id: I0bead0cbb8b549cc538ef4a7327f0a8303c90bd1 CRs-Fixed: 2801842
This commit is contained in:
@@ -1017,7 +1017,7 @@ tgt_mc_cp_stats_prepare_n_send_raw_station_stats(struct wlan_objmgr_psoc *psoc,
|
||||
info.num_peer_adv_stats = 1;
|
||||
qdf_mem_copy(info.peer_adv_stats,
|
||||
peer_mc_stats->adv_stats,
|
||||
sizeof(peer_mc_stats->adv_stats));
|
||||
sizeof(*peer_mc_stats->adv_stats));
|
||||
}
|
||||
|
||||
wlan_cp_stats_peer_obj_unlock(peer_cp_stats_priv);
|
||||
|
Reference in New Issue
Block a user