]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fill all policy .type entries
authorJohannes Berg <johannes.berg@intel.com>
Tue, 28 May 2019 12:18:07 +0000 (14:18 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 28 May 2019 12:18:07 +0000 (14:18 +0200)
commitf8eb7b176c30de548e06e14cc56fca6489a57bdf
tree86362eddf32940a2df1e77651ae8c774f0fd290d
parent9a3906ed794a49658947950d7e3530f520247c20
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