wireless: fix wrong 160/80+80 MHz setting
authorShay Bar <shay.bar@celeno.com>
Wed, 26 Aug 2020 14:31:39 +0000 (17:31 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 27 Aug 2020 08:46:53 +0000 (10:46 +0200)
commit3579994476b65cb5e272ff0f720a1fd31322e53f
tree78690d95be4b9dfd4ff60cacc4e43a68beb4fe20
parentf01cfbaf9b2971126f094acfbda2589bd2394f4d
wireless: fix wrong 160/80+80 MHz setting

Fix cfg80211_chandef_usable():
consider IEEE80211_VHT_CAP_EXT_NSS_BW when verifying 160/80+80 MHz.

Based on:
"Table 9-272 — Setting of the Supported Channel Width Set subfield and Extended NSS BW
Support subfield at a STA transmitting the VHT Capabilities Information field"
From "Draft P802.11REVmd_D3.0.pdf"

Signed-off-by: Aviad Brikman <aviad.brikman@celeno.com>
Signed-off-by: Shay Bar <shay.bar@celeno.com>
Link: https://lore.kernel.org/r/20200826143139.25976-1-shay.bar@celeno.com
[reformat the code a bit and use u32_get_bits()]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/chan.c