[PATCH] wireless: add check of field VHT Extended NSS BW Capable for 160/80+80 MHz setting
Arend van Spriel
arend.vanspriel at broadcom.com
Thu May 20 12:21:13 PDT 2021
On 5/20/2021 5:40 AM, Wen Gong wrote:
> Table 9-251—Supported VHT-MCS and NSS Set subfields, it has subfield VHT Extended
> NSS BW Capable, its definition is:
> Indicates whether the STA is capable of interpreting the Extended NSS BW
> Support subfield of the VHT Capabilities Information field.
>
> This patch is to add check for the subfield.
Almost looks good to me, but...
> Signed-off-by: Wen Gong <wgong at codeaurora.org>
> ---
> net/wireless/chan.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/net/wireless/chan.c b/net/wireless/chan.c
> index 285b8076054b..f7f86bd75cc0 100644
> --- a/net/wireless/chan.c
> +++ b/net/wireless/chan.c
[...]
> @@ -1037,7 +1039,7 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,
> cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK;
> if (cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ &&
> cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ &&
> - !(vht_cap->cap & IEEE80211_VHT_CAP_EXT_NSS_BW_MASK))
> + !(ext_nss_cap && vht_cap->cap & IEEE80211_VHT_CAP_EXT_NSS_BW_MASK))
you should not mix logical and binary operators so add braces around the
binary operation here.
Regards,
Arend
> return false;
> break;
> default:
>
More information about the ath11k
mailing list