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
This commit is contained in:
Abhishek Singh 2021-05-31 21:18:44 +05:30 • committed by Madan Koyyalamudi
commit 989cced6ab

View file

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