wifi: cfg80211/mac80211: check EHT capability size correctly
authorJohannes Berg <johannes.berg@intel.com>
Tue, 16 Aug 2022 09:26:23 +0000 (11:26 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 21 May 2023 21:03:28 +0000 (23:03 +0200)
commit34b9303152c2e046da1461e4730c23c185701880
treeb6a7942fd26c0a371572837ff5e4d7fbabb51ad6
parent421795611394c5251252da067bc8c0e361df2c8a
wifi: cfg80211/mac80211: check EHT capability size correctly

For AP/non-AP the EHT MCS/NSS subfield size differs, the
4-octet subfield is only used for 20 MHz-only non-AP STA.
Pass an argument around everywhere to be able to parse it
properly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h