Browse Source

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
Abhishek Singh 3 years ago
parent
commit
be586dd387
1 changed files with 0 additions and 3 deletions
  1. 0 3
      core/mac/src/pe/lim/lim_ft.c

+ 0 - 3
core/mac/src/pe/lim/lim_ft.c

@@ -199,7 +199,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);
@@ -208,8 +207,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);