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:

committed by
Ravindra Konda

parent
4eb9815525
commit
a89004ad92
@@ -6216,7 +6216,6 @@ void cm_roam_scan_info_event(struct wlan_objmgr_psoc *psoc,
|
|||||||
uint32_t *chan_freq = NULL;
|
uint32_t *chan_freq = NULL;
|
||||||
uint8_t count = 0, status, num_chan;
|
uint8_t count = 0, status, num_chan;
|
||||||
uint32_t band_capability = 0, band_mask = 0;
|
uint32_t band_capability = 0, band_mask = 0;
|
||||||
bool is_full_scan;
|
|
||||||
struct wlan_diag_roam_scan_done *wlan_diag_event = NULL;
|
struct wlan_diag_roam_scan_done *wlan_diag_event = NULL;
|
||||||
|
|
||||||
wlan_diag_event = qdf_mem_malloc(sizeof(*wlan_diag_event));
|
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)
|
if (scan->num_ap)
|
||||||
wlan_diag_event->cand_ap_count = scan->num_ap - 1;
|
wlan_diag_event->cand_ap_count = scan->num_ap - 1;
|
||||||
|
|
||||||
is_full_scan = scan->type && scan->present;
|
if (scan->type == ROAM_STATS_SCAN_TYPE_FULL && scan->present) {
|
||||||
|
|
||||||
if (is_full_scan) {
|
|
||||||
status = mlme_get_fw_scan_channels(psoc, chan_freq, &num_chan);
|
status = mlme_get_fw_scan_channels(psoc, chan_freq, &num_chan);
|
||||||
if (QDF_IS_STATUS_ERROR(status))
|
if (QDF_IS_STATUS_ERROR(status))
|
||||||
goto out;
|
goto out;
|
||||||
|
Reference in New Issue
Block a user