qcacmn: Replace reg curchan with 6g ap power based chan list
The consumers of the current channel list may want to search through 6G channels that are not part of current channel list and belong to channel list of different power mode. Therefore, replace the regulatory current channel list with that of 6G power based channel list. Change-Id: Ie2ff8bbfb50a5f95f584b134b18246cb28b1c406 CRs-Fixed: 3110987
This commit is contained in:

کامیت شده توسط
Madan Koyyalamudi

والد
5aba520461
کامیت
e7b559d010
@@ -1048,7 +1048,8 @@ QDF_STATUS __scm_handle_bcn_probe(struct scan_bcn_probe_event *bcn)
|
||||
/* Do not add invalid channel entry as kernel will reject it */
|
||||
if (scan_obj->drop_bcn_on_invalid_freq &&
|
||||
wlan_reg_is_disable_for_freq(pdev,
|
||||
scan_entry->channel.chan_freq)) {
|
||||
scan_entry->channel.chan_freq,
|
||||
REG_CURRENT_PWR_MODE)) {
|
||||
scm_nofl_debug("Drop frame for invalid freq %d: "QDF_MAC_ADDR_FMT" Seq Num: %d RSSI %d",
|
||||
scan_entry->channel.chan_freq,
|
||||
QDF_MAC_ADDR_REF(scan_entry->bssid.bytes),
|
||||
|
@@ -329,7 +329,8 @@ util_scan_get_chan_from_he_6g_params(struct wlan_objmgr_pdev *pdev,
|
||||
he_6g_params->primary_channel,
|
||||
band_mask);
|
||||
if (scan_obj->drop_bcn_on_invalid_freq &&
|
||||
wlan_reg_is_disable_for_freq(pdev, *chan_freq)) {
|
||||
wlan_reg_is_disable_for_freq(pdev, *chan_freq,
|
||||
REG_CURRENT_PWR_MODE)) {
|
||||
scm_debug_rl(QDF_MAC_ADDR_FMT": Drop as invalid channel %d freq %d in HE 6Ghz params",
|
||||
QDF_MAC_ADDR_REF(scan_params->bssid.bytes),
|
||||
he_6g_params->primary_channel, *chan_freq);
|
||||
@@ -1285,7 +1286,9 @@ util_scan_populate_bcn_ie_list(struct wlan_objmgr_pdev *pdev,
|
||||
band_mask);
|
||||
/* Drop if invalid freq */
|
||||
if (scan_obj->drop_bcn_on_invalid_freq &&
|
||||
wlan_reg_is_disable_for_freq(pdev, *chan_freq)) {
|
||||
wlan_reg_is_disable_for_freq(
|
||||
pdev, *chan_freq,
|
||||
REG_CURRENT_PWR_MODE)) {
|
||||
scm_debug_rl(QDF_MAC_ADDR_FMT": Drop as invalid channel %d freq %d in HT_INFO IE",
|
||||
QDF_MAC_ADDR_REF(scan_params->bssid.bytes),
|
||||
chan_idx, *chan_freq);
|
||||
|
مرجع در شماره جدید
Block a user