qcacld-3.0: enable spectrum Management for 6G SAP
Add check to enable lim11hEnable flag for 6G band SAP. The flag lim11hEnable finally enables beacon capability spectrum management bit. Change-Id: I7dbf52acc18a611d72aad27ef021de5ac995c561 CRs-Fixed: 3176060
This commit is contained in:

committed by
Madan Koyyalamudi

parent
721b08defb
commit
c614e0cad9
@@ -1180,8 +1180,8 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
|||||||
|
|
||||||
/* Initialize 11h Enable Flag */
|
/* Initialize 11h Enable Flag */
|
||||||
session->lim11hEnable = 0;
|
session->lim11hEnable = 0;
|
||||||
if ((CHAN_HOP_ALL_BANDS_ENABLE ||
|
if (CHAN_HOP_ALL_BANDS_ENABLE ||
|
||||||
REG_BAND_5G == session->limRFBand)) {
|
(session->limRFBand != REG_BAND_2G)) {
|
||||||
session->lim11hEnable =
|
session->lim11hEnable =
|
||||||
mac_ctx->mlme_cfg->gen.enabled_11h;
|
mac_ctx->mlme_cfg->gen.enabled_11h;
|
||||||
|
|
||||||
@@ -3254,7 +3254,7 @@ lim_fill_pe_session(struct mac_context *mac_ctx, struct pe_session *session,
|
|||||||
session->limRFBand = lim_get_rf_band(session->curr_op_freq);
|
session->limRFBand = lim_get_rf_band(session->curr_op_freq);
|
||||||
|
|
||||||
/* Initialize 11h Enable Flag */
|
/* Initialize 11h Enable Flag */
|
||||||
if (session->limRFBand == REG_BAND_5G)
|
if (session->limRFBand != REG_BAND_2G)
|
||||||
session->lim11hEnable =
|
session->lim11hEnable =
|
||||||
mac_ctx->mlme_cfg->gen.enabled_11h;
|
mac_ctx->mlme_cfg->gen.enabled_11h;
|
||||||
else
|
else
|
||||||
@@ -8329,7 +8329,7 @@ static void lim_process_sme_channel_change_request(struct mac_context *mac_ctx,
|
|||||||
|
|
||||||
/* Initialize 11h Enable Flag */
|
/* Initialize 11h Enable Flag */
|
||||||
if (CHAN_HOP_ALL_BANDS_ENABLE ||
|
if (CHAN_HOP_ALL_BANDS_ENABLE ||
|
||||||
session_entry->limRFBand == REG_BAND_5G)
|
session_entry->limRFBand != REG_BAND_2G)
|
||||||
session_entry->lim11hEnable =
|
session_entry->lim11hEnable =
|
||||||
mac_ctx->mlme_cfg->gen.enabled_11h;
|
mac_ctx->mlme_cfg->gen.enabled_11h;
|
||||||
else
|
else
|
||||||
|
@@ -668,7 +668,8 @@ sch_set_fixed_beacon_fields(struct mac_context *mac_ctx, struct pe_session *sess
|
|||||||
* Populate the Channel Switch Wrapper Element if
|
* Populate the Channel Switch Wrapper Element if
|
||||||
* SAP operates in 40/80 Mhz Channel Width.
|
* SAP operates in 40/80 Mhz Channel Width.
|
||||||
*/
|
*/
|
||||||
if (true == session->dfsIncludeChanWrapperIe) {
|
if (!is_6ghz_chsw &&
|
||||||
|
session->dfsIncludeChanWrapperIe == true) {
|
||||||
populate_dot11f_chan_switch_wrapper(mac_ctx,
|
populate_dot11f_chan_switch_wrapper(mac_ctx,
|
||||||
&bcn_2->ChannelSwitchWrapper, session);
|
&bcn_2->ChannelSwitchWrapper, session);
|
||||||
pe_debug("wrapper: width:%d f0:%d f1:%d",
|
pe_debug("wrapper: width:%d f0:%d f1:%d",
|
||||||
|
Reference in New Issue
Block a user