qcacld-3.0: send proper chan num for partial scan case

In advance logging the total freq is shown as NUM_CHANNELS(102)
for scan type ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ or
ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ.

Fix is to send max NUM_CHANNELS number of channel only if
scan type is ROAM_STATS_SCAN_TYPE_FULL.

CRs-Fixed: 3637662
Change-Id: I2abb01d54d7ac2a38879d05d5070960df4b4e75a
This commit is contained in:
Abhinav Kumar
2023-10-13 06:36:28 -07:00
committed by Ravindra Konda
parent 4eb9815525
commit a89004ad92

View File

@@ -6216,7 +6216,6 @@ void cm_roam_scan_info_event(struct wlan_objmgr_psoc *psoc,
uint32_t *chan_freq = NULL;
uint8_t count = 0, status, num_chan;
uint32_t band_capability = 0, band_mask = 0;
bool is_full_scan;
struct wlan_diag_roam_scan_done *wlan_diag_event = NULL;
wlan_diag_event = qdf_mem_malloc(sizeof(*wlan_diag_event));
@@ -6245,9 +6244,7 @@ void cm_roam_scan_info_event(struct wlan_objmgr_psoc *psoc,
if (scan->num_ap)
wlan_diag_event->cand_ap_count = scan->num_ap - 1;
is_full_scan = scan->type && scan->present;
if (is_full_scan) {
if (scan->type == ROAM_STATS_SCAN_TYPE_FULL && scan->present) {
status = mlme_get_fw_scan_channels(psoc, chan_freq, &num_chan);
if (QDF_IS_STATUS_ERROR(status))
goto out;