qcacld-3.0: Filter non-PSC 6 GHz ACS channels
In SAP ACS, 6 GHz non-PSC channels will increase the SAP ACS scan time, and 6 GHz non-PSC channels are not favorite channels for standalone AP, so skip non-PSC channels in ACS SCAN. Change-Id: I5ac69c81c29feba9b75fcef36d6e205f3716afdf CRs-Fixed: 3189215
This commit is contained in:

committed by
Madan Koyyalamudi

parent
507d736ccd
commit
a1a79f9566
@@ -1177,7 +1177,7 @@ QDF_STATUS sap_channel_sel(struct sap_context *sap_context)
|
||||
struct mac_context *mac_ctx;
|
||||
struct scan_start_request *req;
|
||||
struct wlan_objmgr_vdev *vdev = NULL;
|
||||
uint8_t i;
|
||||
uint8_t i, j;
|
||||
uint32_t *freq_list = NULL;
|
||||
uint8_t num_of_channels = 0;
|
||||
mac_handle_t mac_handle;
|
||||
@@ -1269,10 +1269,13 @@ QDF_STATUS sap_channel_sel(struct sap_context *sap_context)
|
||||
req->scan_req.scan_req_id = sap_context->req_id;
|
||||
req->scan_req.scan_priority = SCAN_PRIORITY_HIGH;
|
||||
req->scan_req.scan_f_bcast_probe = true;
|
||||
|
||||
req->scan_req.chan_list.num_chan = num_of_channels;
|
||||
for (i = 0; i < num_of_channels; i++)
|
||||
req->scan_req.chan_list.chan[i].freq = freq_list[i];
|
||||
for (i = 0, j = 0; i < num_of_channels; i++) {
|
||||
if (wlan_reg_is_6ghz_chan_freq(freq_list[i]) &&
|
||||
!wlan_reg_is_6ghz_psc_chan_freq(freq_list[i]))
|
||||
continue;
|
||||
req->scan_req.chan_list.chan[j++].freq = freq_list[i];
|
||||
}
|
||||
req->scan_req.chan_list.num_chan = j;
|
||||
sap_context->freq_list = freq_list;
|
||||
sap_context->num_of_channel = num_of_channels;
|
||||
/* Set requestType to Full scan */
|
||||
|
Reference in New Issue
Block a user