]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: use NLA_POLICY_RANGE(NLA_BINARY, ...) for a few attributes
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Aug 2020 06:56:43 +0000 (08:56 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 27 Aug 2020 09:25:06 +0000 (11:25 +0200)
commit4b433e15fa093ffa04b6303231d7bbac31483899
treed8adad76866f99373f3afef4c3269cee66b333b5
parenta809a881069493fc63072c605d3a536fbc0d4921
nl80211: use NLA_POLICY_RANGE(NLA_BINARY, ...) for a few attributes

We have a few attributes with minimum and maximum lengths that are
not the same, use the new feature of being able to specify both in
the policy to validate them, removing code and allowing this to be
advertised to userspace in the policy export.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200819085642.8f12ffa14f33.I9d948d59870e521febcd79bb4a986b1de1dca47b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c