Ver Fonte

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
Liangwei Dong há 3 anos atrás
pai
commit
c614e0cad9

+ 4 - 4
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -1180,8 +1180,8 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
 
 		/* Initialize 11h Enable Flag */
 		session->lim11hEnable = 0;
-		if ((CHAN_HOP_ALL_BANDS_ENABLE ||
-		     REG_BAND_5G == session->limRFBand)) {
+		if (CHAN_HOP_ALL_BANDS_ENABLE ||
+		    (session->limRFBand != REG_BAND_2G)) {
 			session->lim11hEnable =
 				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);
 
 	/* Initialize 11h Enable Flag */
-	if (session->limRFBand == REG_BAND_5G)
+	if (session->limRFBand != REG_BAND_2G)
 		session->lim11hEnable =
 			mac_ctx->mlme_cfg->gen.enabled_11h;
 	else
@@ -8329,7 +8329,7 @@ static void lim_process_sme_channel_change_request(struct mac_context *mac_ctx,
 
 	/* Initialize 11h Enable Flag */
 	if (CHAN_HOP_ALL_BANDS_ENABLE ||
-	    session_entry->limRFBand == REG_BAND_5G)
+	    session_entry->limRFBand != REG_BAND_2G)
 		session_entry->lim11hEnable =
 			mac_ctx->mlme_cfg->gen.enabled_11h;
 	else

+ 2 - 1
core/mac/src/pe/sch/sch_beacon_gen.c

@@ -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
 			 * 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,
 					&bcn_2->ChannelSwitchWrapper, session);
 				pe_debug("wrapper: width:%d f0:%d f1:%d",