diff options
author | sheenam monga <shebala@codeaurora.org> | 2020-07-28 18:19:42 +0530 |
---|---|---|
committer | snandini <snandini@codeaurora.org> | 2020-09-04 18:53:39 -0700 |
commit | de799e364a3fc3df97b9f273797424baea38bcc3 (patch) | |
tree | 289bcce5da75ae7f1411ad8fa9812f9f86885a92 /core/mac/src/pe/lim/lim_assoc_utils.c | |
parent | 33c5314198feac430e80bcfdbfe3c4e9be877e41 (diff) | |
download | qcacld-de799e364a3fc3df97b9f273797424baea38bcc3.tar.gz |
qcacld-3.0: Consider he params from beacon if missing in assoc resp
Issue: Currently, host calculates he_caps based on assoc resp
he caps. In case assoc resp doesn't have he_caps host will
set peer mode vht and vdev mode he which may cause issue due
to different peer and vdev modes.
Fix: Consider beacon he params if he params not present in
assoc resp to keep vdev and he param same.
Change-Id: Id3df1eae85d30334d5d877c6ddd737989813f7c8
CRs-Fixed: 2769783
Diffstat (limited to 'core/mac/src/pe/lim/lim_assoc_utils.c')
-rw-r--r-- | core/mac/src/pe/lim/lim_assoc_utils.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/mac/src/pe/lim/lim_assoc_utils.c b/core/mac/src/pe/lim/lim_assoc_utils.c index 2971b5fce2..277bf73bbb 100644 --- a/core/mac/src/pe/lim/lim_assoc_utils.c +++ b/core/mac/src/pe/lim/lim_assoc_utils.c @@ -3593,10 +3593,11 @@ QDF_STATUS lim_sta_send_add_bss(struct mac_context *mac, tpSirAssocRsp pAssocRsp } } if (lim_is_session_he_capable(pe_session) && - pAssocRsp->he_cap.present) { + (pAssocRsp->he_cap.present || + pBeaconStruct->he_cap.present)) { lim_intersect_ap_he_caps(pe_session, pAddBssParams, - NULL, + pBeaconStruct, pAssocRsp); lim_update_he_stbc_capable(&pAddBssParams->staContext); lim_update_he_mcs_12_13(&pAddBssParams->staContext, @@ -3693,10 +3694,11 @@ QDF_STATUS lim_sta_send_add_bss(struct mac_context *mac, tpSirAssocRsp pAssocRsp } if (lim_is_he_6ghz_band(pe_session)) { if (lim_is_session_he_capable(pe_session) && - pAssocRsp->he_cap.present) { + (pAssocRsp->he_cap.present || + pBeaconStruct->he_cap.present)) { lim_intersect_ap_he_caps(pe_session, pAddBssParams, - NULL, + pBeaconStruct, pAssocRsp); lim_update_he_stbc_capable(&pAddBssParams->staContext); lim_update_he_6gop_assoc_resp(pAddBssParams, |