]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: parse only HE capability elements with valid size
authorJohannes Berg <johannes.berg@intel.com>
Mon, 14 Feb 2022 16:29:22 +0000 (17:29 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 16 Feb 2022 14:40:48 +0000 (15:40 +0100)
commitd7fa08faea484c5bd0ee6a052a3b645c4908c451
tree697427df551747541c1e7df94875464752898c5b
parent04567d2d837b703e7d5e4daf4598c65b5f0238c5
mac80211: parse only HE capability elements with valid size

The code validates the HE capability element size later,
but slightly wrong, so use the new helper to do it right
and only accept it if it has a good size.

Link: https://lore.kernel.org/r/20220214172920.b5b06f264a61.I645ac1e2dc0ace223ef3e551cd5a71c88bd55e04@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c