Pārlūkot izejas kodu

qcacld-3.0: Send the correct supported channel width in Assoc Resp

qcacld-2.0 to qcacld-3.0 propagation

Currently, if SAP supports 40Mhz, then it sends the supported
channel width as 40Mhz irrespective whether STA supports or not.

Changes done to check the STA capability for supported channel
width and send it accordingly in Assoc Resp

Change-Id: I58ca44b6998d4712521a10285b9fd2a3f825d2ed
CRs-Fixed: 728676
Signed-off-by: Krunal Soni <[email protected]>
Krunal Soni 9 gadi atpakaļ
vecāks
revīzija
6d761723d7
1 mainītis faili ar 12 papildinājumiem un 0 dzēšanām
  1. 12 0
      core/mac/src/pe/lim/lim_send_management_frames.c

+ 12 - 0
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -1202,6 +1202,18 @@ lim_send_assoc_rsp_mgmt_frame(tpAniSirGlobal mac_ctx,
 				FL("Populate HT IEs in Assoc Response"));
 			populate_dot11f_ht_caps(mac_ctx, pe_session,
 				&frm.HTCaps);
+			/*
+			 * Check the STA capability and
+			 * update the HTCaps accordingly
+			 */
+			frm.HTCaps.supportedChannelWidthSet = (
+				sta->htSupportedChannelWidthSet <
+				     pe_session->htSupportedChannelWidthSet) ?
+				      sta->htSupportedChannelWidthSet :
+				       pe_session->htSupportedChannelWidthSet;
+			if (!frm.HTCaps.supportedChannelWidthSet)
+				frm.HTCaps.shortGI40MHz = 0;
+
 			populate_dot11f_ht_info(mac_ctx, &frm.HTInfo,
 				pe_session);
 		}