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 <ksoni@qca.qualcomm.com>
This commit is contained in:
Krunal Soni 2015-06-12 15:12:19 -07:00 • committed by Akash Patel
commit ef3294b8e5

View file

@ -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);
}