ieee80211: add helper to check HE capability element size
authorJohannes Berg <johannes.berg@intel.com>
Mon, 14 Feb 2022 16:29:21 +0000 (17:29 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 6 May 2022 12:01:55 +0000 (14:01 +0200)
commit77001c1bcf5d7d32b1784e9fb7bd7b587595d630
tree4b2a0f8eba74ff0d6add787629fd555e133d32df
parentf2bb2d96a979b307bebfe9f78e9e16ea7a4b2b85
ieee80211: add helper to check HE capability element size

This element has a very dynamic structure, create a small helper
function to validate its size. We're currently checking it in
mac80211 in a conversion function, but that's actually slightly
buggy.

Link: https://lore.kernel.org/r/20220214172920.750bee9eaf37.Ie18359bd38143b7dc949078f10752413e6d36854@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h