Sfoglia il codice sorgente

qcacld-3.0: Reset HE bandwidth caps for 20MHz connection

Reset the greater than 20MHz bandwidth HE caps for
20MHz connection.

Change-Id: I2b0db79ad79904ce53fd3a68af406c5f003225db
CRs-Fixed: 2384652
Kiran Kumar Lokere 6 anni fa
parent
commit
c360fbb7e5
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. 13 0
      core/mac/src/pe/lim/lim_utils.c

+ 13 - 0
core/mac/src/pe/lim/lim_utils.c

@@ -7007,6 +7007,19 @@ void lim_copy_join_req_he_cap(struct pe_session *session,
 		*(uint16_t *)session->he_config.tx_he_mcs_map_80_80 =
 							HE_MCS_ALL_DISABLED;
 	}
+	/* Reset the > 20MHz caps for 20MHz connection */
+	if (session->ch_width == CH_WIDTH_20MHZ) {
+		session->he_config.chan_width_0 = 0;
+		session->he_config.chan_width_1 = 0;
+		session->he_config.chan_width_2 = 0;
+		session->he_config.chan_width_3 = 0;
+		session->he_config.chan_width_4 = 0;
+		session->he_config.chan_width_5 = 0;
+		session->he_config.chan_width_6 = 0;
+		session->he_config.he_ppdu_20_in_40Mhz_2G = 0;
+		session->he_config.he_ppdu_20_in_160_80p80Mhz = 0;
+		session->he_config.he_ppdu_80_in_160_80p80Mhz = 0;
+	}
 }
 
 void lim_log_he_cap(struct mac_context *mac, tDot11fIEhe_cap *he_cap)