mac80211: remove NSS number of 160MHz if not support 160MHz for HE
authorWen Gong <wgong@codeaurora.org>
Tue, 5 Jan 2021 03:08:39 +0000 (11:08 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 21 Jan 2021 12:45:13 +0000 (13:45 +0100)
commit2d5e09d05827f9aace60b9711d9680e5da51ca5d
tree5c8616956d45e4ded967fd76330d93c583d0d159
parent28881922abd786a1e62a4ca77394a84373dd5279
mac80211: remove NSS number of 160MHz if not support 160MHz for HE

When it does not support 160MHz in HE phy capabilities information,
it should not treat the NSS number of 160MHz as a valid number,
otherwise the final NSS will be set to 0.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Link: https://lore.kernel.org/r/1609816120-9411-2-git-send-email-wgong@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/vht.c