Forráskód Böngészése

qcacld-3.0: Need check both HTCaps and HTInfo for channel width

Some AP indicates it support 40M in HTInfo, while not support 40M in
HTCaps, so need intersect HTInfo and HTCaps.

Change-Id: I496b62f50a2e1e19aeef7e77535d0479f31bba44
CRs-Fixed: 3025951
Jianmin Zhu 3 éve
szülő
commit
79aa7147a2
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      core/mac/src/pe/lim/lim_ft.c

+ 2 - 1
core/mac/src/pe/lim/lim_ft.c

@@ -643,7 +643,8 @@ void lim_fill_ft_session(struct mac_context *mac,
 	}
 	ft_session->htSupportedChannelWidthSet =
 	    (pBeaconStruct->HTInfo.present) ?
-	    (cbEnabledMode && pBeaconStruct->HTInfo.recommendedTxWidthSet) : 0;
+	    (cbEnabledMode && pBeaconStruct->HTInfo.recommendedTxWidthSet &&
+	     pBeaconStruct->HTCaps.supportedChannelWidthSet) : 0;
 	ft_session->htRecommendedTxWidthSet =
 		ft_session->htSupportedChannelWidthSet;