qcacld-3.0: Send roam scan info to userspace

Host receives WMI_ROAM_STATS_EVENTID event
from fw whenever roam scan trigger happens.
Send roam scan details and candidate AP details
to userspace.

Change-Id: I92a35d7b15951321107db14ae588d66e82a8174e
CRs-Fixed: 3031391
This commit is contained in:
abhinav kumar
2021-09-04 02:04:50 +05:30
committed by Madan Koyyalamudi
parent db383df8c9
commit 9bb838865c
7 changed files with 227 additions and 18 deletions

View File

@@ -2856,7 +2856,7 @@ extract_roam_stats_event_tlv(wmi_unified_t wmi_handle, uint8_t *evt_buf,
wmi_roam_stats_event_fixed_param *fixed_param;
struct roam_stats_event *stats_info;
struct roam_msg_info *roam_msg_info = NULL;
uint8_t vdev_id, i;
uint8_t vdev_id, i, num_btm = 0;
uint8_t num_tlv = 0, num_chan = 0, num_ap = 0, num_rpt = 0;
uint32_t rem_len;
QDF_STATUS status;
@@ -2977,7 +2977,8 @@ extract_roam_stats_event_tlv(wmi_unified_t wmi_handle, uint8_t *evt_buf,
*/
status = wmi_unified_extract_roam_trigger_stats(wmi_handle,
evt_buf,
&stats_info->trigger[i], i);
&stats_info->trigger[i], i,
num_btm);
if (QDF_IS_STATUS_ERROR(status)) {
wmi_debug_rl("Extract roam trigger stats failed vdev %d at %d iteration",
vdev_id, i);
@@ -2985,6 +2986,10 @@ extract_roam_stats_event_tlv(wmi_unified_t wmi_handle, uint8_t *evt_buf,
goto err;
}
if (stats_info->trigger[i].trigger_reason ==
WMI_ROAM_TRIGGER_REASON_BTM)
num_btm += stats_info->trigger[i].btm_trig_data.candidate_list_count;
/* Roam scan related details - Scan channel, scan type .. */
status = wmi_unified_extract_roam_scan_stats(wmi_handle,
evt_buf,
@@ -3046,7 +3051,8 @@ extract_roam_stats_event_tlv(wmi_unified_t wmi_handle, uint8_t *evt_buf,
status = wmi_unified_extract_roam_trigger_stats(wmi_handle,
evt_buf,
&stats_info->trigger[0], 0);
&stats_info->trigger[0],
0, 0);
if (QDF_IS_STATUS_ERROR(status)) {
wmi_debug_rl("Extract roamtrigger stats failed vdev %d",
vdev_id);