mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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:
parent
1867f16018
commit
ef3294b8e5
1 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue