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)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 22 Jun 2023 17:52:09 +0000 (19:52 +0200)
commit31b5a547622b3782388eb676081da1eefe5b98d2
tree8861043e2b5082999c313733fedd67eea0cffba0
parent5f743f576d3f9ac08ed28fe8e65bdbc8d49b8034
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>
include/linux/ieee80211.h