wifi: ieee80211: fix erroneous NSTR bitmap size checks
authorJohannes Berg <johannes.berg@intel.com>
Thu, 22 Jun 2023 17:44:22 +0000 (19:44 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 16 Sep 2023 21:57:07 +0000 (23:57 +0200)
commitbb15969c7f4cd619e8d8d697c91373334510a75f
tree68347192a474c0abd08ca11988e4c3fe79beaf67
parent94690a6ff38e4b0441008f22a4fb3a154d0dbffe
wifi: ieee80211: fix erroneous NSTR bitmap size checks

The complete profile bit together with the NSTR link pair
present bit indicate whether or not the NSTR bitmap is,
the NSTR bitmap size just indicates how big it is.

Fixes: 7b6f08771bf6 ("wifi: ieee80211: Support validating ML station profile length")
Fixes: 5c1f97537bfb ("wifi: mac80211: store BSS param change count from assoc response")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h