Эх сурвалжийг харах

qcacld-3.0: Update channel width in Operating Mode IE

Host is always updating channel width as 20MHz while updating the
rx nss value in Operating Mode IE.

Channel width should be updated from session entry.

CRs-Fixed: 2048435
Change-Id: Ib78f52d3ad1be875450a76c20a9332933f50277f
Ganesh Kondabattini 8 жил өмнө
parent
commit
5e0ac2ab19

+ 8 - 0
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -6025,6 +6025,14 @@ static void lim_process_nss_update_request(tpAniSirGlobal mac_ctx,
 	/* populate nss field in the beacon */
 	session_entry->gLimOperatingMode.present = 1;
 	session_entry->gLimOperatingMode.rxNSS = nss_update_req_ptr->new_nss;
+	session_entry->gLimOperatingMode.chanWidth = session_entry->ch_width;
+
+	if ((nss_update_req_ptr->new_nss == NSS_1x1_MODE) &&
+			(session_entry->ch_width > CH_WIDTH_80MHZ))
+		session_entry->gLimOperatingMode.chanWidth = CH_WIDTH_80MHZ;
+
+	pe_debug("ch width %hu", session_entry->gLimOperatingMode.chanWidth);
+
 	/* Send nss update request from here */
 	if (sch_set_fixed_beacon_fields(mac_ctx, session_entry) !=
 			eSIR_SUCCESS) {