From ba83af2b7729ede3ff9c380030a135cf37af4f5e Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatnagar Date: Tue, 10 Aug 2021 19:02:59 +0530 Subject: [PATCH] qcacld-3.0: Fill Chan width for 6Ghz Incase of non-6ghz, the peer width is updated while extracting HT and VHT capability. For 6Ghz, the HT and VHT capabilities may not be present and because of which the peer channel width gets updated as zero (20 Mhz). To fix this, fill the channel width for peer if session is 6ghz and peer supports HE Capabilities. Change-Id: Ie4d8f3a3a364af2c47e6b3d7309ee1287652ae06 CRs-Fixed: 3010063 --- core/mac/src/pe/lim/lim_process_tdls.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c index 34ec0e379a85..7e11426a5325 100644 --- a/core/mac/src/pe/lim/lim_process_tdls.c +++ b/core/mac/src/pe/lim/lim_process_tdls.c @@ -1104,9 +1104,16 @@ static void lim_tdls_update_node_he_caps(struct mac_context *mac, lim_log_he_cap(mac, &sta->he_config); - if (lim_is_he_6ghz_band(pe_session)) + if (lim_is_he_6ghz_band(pe_session)) { lim_tdls_populate_dot11f_6hgz_he_caps(mac, add_sta_req, &sta->he_6g_band_cap); + /* + * In 6Ghz, vht and ht ie may not present, peer channel width + * is populated while extracting HT and VHT cap itself. So, + * incase of 6ghz fill the chan_width. + */ + lim_update_stads_he_6ghz_op(pe_session, sta); + } } #else