OSDN Git Service

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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 16 Feb 2022 14:40:46 +0000 (15:40 +0100)
commitd61f4274daa41565b5f9ce589b4ba1239781c139
treebba0e50e50ade269784c355a2288a2e366a66999
parent024fcf5efda73d95394ec7448bc9751e265fb18f
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>
include/linux/ieee80211.h