diff options
author | Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> | 2020-02-13 14:16:16 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2020-02-14 09:50:37 +0100 |
commit | ea75080110a4c1fa011b0a73cb8f42227143ee3e (patch) | |
tree | 4eb99ae225ceff273b382d67040c5d1f31a3c785 /net/wireless/nl80211.c | |
parent | cfg80211: check wiphy driver existence for drvinfo report (diff) | |
download | linux-ea75080110a4c1fa011b0a73cb8f42227143ee3e.tar.xz linux-ea75080110a4c1fa011b0a73cb8f42227143ee3e.zip |
cfg80211: add missing policy for NL80211_ATTR_STATUS_CODE
The nl80211_policy is missing for NL80211_ATTR_STATUS_CODE attribute.
As a result, for strictly validated commands, it's assumed to not be
supported.
Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Link: https://lore.kernel.org/r/20200213131608.10541-2-sergey.matyukevich.os@quantenna.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to '')
-rw-r--r-- | net/wireless/nl80211.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 123b8d720a59..cedf17d4933f 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -437,6 +437,7 @@ const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = { [NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT] = { .type = NLA_FLAG }, [NL80211_ATTR_CONTROL_PORT_OVER_NL80211] = { .type = NLA_FLAG }, [NL80211_ATTR_PRIVACY] = { .type = NLA_FLAG }, + [NL80211_ATTR_STATUS_CODE] = { .type = NLA_U16 }, [NL80211_ATTR_CIPHER_SUITE_GROUP] = { .type = NLA_U32 }, [NL80211_ATTR_WPA_VERSIONS] = { .type = NLA_U32 }, [NL80211_ATTR_PID] = { .type = NLA_U32 }, |