qcacmn: Use SP channels for passive scan

Currently host driver doesn't consider SP channels for scan.
So if any country supports only SP power type then STA is not
able to scan and connect to the AP which is operating on
SP channel.

To address this issue enable passive scanning for SP only
channels and add logic to prevent turning up SAP on these
channels.

Change-Id: Ieb14ded41c67e23e066c8a0a5c5e450975d8c4c2
CRs-Fixed: 3529200
This commit is contained in:
Asutosh Mohapatra
2023-06-20 22:46:20 -07:00
committed by Rahul Choudhary
parent a886fa16eb
commit 6b9152becc
2 changed files with 63 additions and 2 deletions

View File

@@ -986,6 +986,7 @@ struct get_usable_chan_req_params {
* subset of the channels belonging to that opclass
* as inputs and expects the driver to disable/enable
* the channels in the subset.
* @power_type: channel power type
*/
struct regulatory_channel {
qdf_freq_t center_freq;
@@ -1008,6 +1009,7 @@ struct regulatory_channel {
#endif
#ifdef CONFIG_REG_CLIENT
uint8_t is_static_punctured;
enum reg_6g_ap_type power_type;
#endif
#ifndef CONFIG_REG_CLIENT
bool opclass_chan_disable;