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
This commit is contained in:
Jianmin Zhu 2021-08-31 13:31:56 +08:00 • committed by Gerrit - the friendly Code Review server
commit fddd0545f4

View file

@ -632,7 +632,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;