qcacmn: Skip STA scan on 6Ghz or 5ghz indoor chan if SAP is up

Currently STA can scan and come up on 6Ghz or indoor channel if
hardware is non-dbs and SAP is present

As part of this change, do not allow STA to scan on 6Ghz or
5Ghz indoor channel for non-dbs hardware if SAP is present

Change-Id: I97759f8b2c6a1c460d90fbb797a0e64d2532797c
CRs-Fixed: 3186406
This commit is contained in:
Jyoti Kumari
2022-05-04 15:22:20 +05:30
committed by Madan Koyyalamudi
父節點 b434bd1dc2
當前提交 02f2ffb93a
共有 6 個文件被更改,包括 91 次插入0 次删除

查看文件

@@ -643,3 +643,13 @@ wlan_scan_unregister_requester(struct wlan_objmgr_psoc *psoc,
qdf_spin_unlock_bh(&scan->lock);
}
bool wlan_scan_cfg_skip_6g_and_indoor_freq(struct wlan_objmgr_psoc *psoc)
{
struct wlan_scan_obj *scan_obj;
scan_obj = wlan_psoc_get_scan_obj(psoc);
if (!scan_obj)
return false;
return scan_obj->scan_def.skip_6g_and_indoor_freq;
}

查看文件

@@ -818,6 +818,10 @@ wlan_scan_global_init(struct wlan_objmgr_psoc *psoc,
cfg_get(psoc, CFG_6GHZ_SCAN_MODE_DUTY_CYCLE);
scan_obj->allow_bss_with_incomplete_ie =
cfg_get(psoc, CFG_SCAN_ALLOW_BSS_WITH_CORRUPTED_IE);
scan_obj->scan_def.skip_6g_and_indoor_freq =
cfg_get(psoc, CFG_SKIP_6GHZ_AND_INDOOR_FREQ_SCAN);
/* init scan id seed */
qdf_atomic_init(&scan_obj->scan_ids);