From 989cced6ab7f5ccb5b42ee3f9e68469bf1039a1a Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Mon, 31 May 2021 21:18:44 +0530 Subject: [PATCH] qcacld-3.0: Fix NULL vht_caps in lim_ft_prepare_add_bss_req In lim_ft_prepare_add_bss_req due to change Ic4a992acfce186f7248dcc99d0c7b44ce38f099b the action was removed but if condition was not removed. This left over if condition is causing the vht_caps to be NULL in VHT20 case. Fix this by removing the left over if condition so that vht_caps is filled all the time. Change-Id: I196fd3cfb44fa3281b9843a61242520e0888d2c4 CRs-Fixed: 2958411 --- core/mac/src/pe/lim/lim_ft.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/mac/src/pe/lim/lim_ft.c b/core/mac/src/pe/lim/lim_ft.c index 155397e041e6..e94f2cefe545 100644 --- a/core/mac/src/pe/lim/lim_ft.c +++ b/core/mac/src/pe/lim/lim_ft.c @@ -200,7 +200,6 @@ void lim_ft_prepare_add_bss_req(struct mac_context *mac, if (ft_session->vhtCapability && ft_session->vhtCapabilityPresentInBeacon) { pAddBssParams->vhtCapable = pBeaconStruct->VHTCaps.present; - if (pBeaconStruct->VHTOperation.chanWidth && chan_width_support) vht_caps = &pBeaconStruct->VHTCaps; lim_update_vhtcaps_assoc_resp(mac, pAddBssParams, vht_caps, ft_session); @@ -209,8 +208,6 @@ void lim_ft_prepare_add_bss_req(struct mac_context *mac, pe_debug("VHT caps are present in vendor specific IE"); pAddBssParams->vhtCapable = pBeaconStruct->vendor_vht_ie.VHTCaps.present; - if (pBeaconStruct->vendor_vht_ie.VHTOperation.chanWidth && - chan_width_support) vht_caps = &pBeaconStruct->vendor_vht_ie.VHTCaps; lim_update_vhtcaps_assoc_resp(mac, pAddBssParams, vht_caps, ft_session);