]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fill all policy .type entries
authorJohannes Berg <johannes.berg@intel.com>
Tue, 28 May 2019 12:19:07 +0000 (14:19 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 May 2019 09:12:11 +0000 (11:12 +0200)
commite0bfe6323ad8bd25bc0f43eb51d6a53d3d4ec007
treefd320dd9e380b85c902d7041dc09f445a8733c87
parent20576e5258c0877f81a4b64223671146dd62951f
nl80211: fill all policy .type entries

For old commands, it's fine to have .type = NLA_UNSPEC and it
behaves the same as NLA_MIN_LEN. However, for new commands with
strict validation this is no longer true, and for policy export
to userspace these are also ignored.

Fix up the remaining ones that don't have a type.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c