diff options
author | 2020-03-02 21:10:58 -0800 | |
---|---|---|
committer | 2020-03-11 08:58:39 +0100 | |
commit | 5cde05c61cbe13cbb3fa66d52b9ae84f7975e5e6 (patch) | |
tree | ea1775da71557a351bb587c4d08fb7c7d0a242fd /net | |
parent | nl80211: add missing attribute validation for beacon report scanning (diff) | |
download | linux-5cde05c61cbe13cbb3fa66d52b9ae84f7975e5e6.tar.gz linux-5cde05c61cbe13cbb3fa66d52b9ae84f7975e5e6.tar.bz2 linux-5cde05c61cbe13cbb3fa66d52b9ae84f7975e5e6.zip |
nl80211: add missing attribute validation for channel switch
Add missing attribute validation for NL80211_ATTR_OPER_CLASS
to the netlink policy.
Fixes: 1057d35ede5d ("cfg80211: introduce TDLS channel switch commands")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20200303051058.4089398-4-kuba@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-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 48e6508aba52..ec5d67794aab 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -565,6 +565,7 @@ const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = { NLA_POLICY_MAX(NLA_U8, IEEE80211_NUM_UPS - 1), [NL80211_ATTR_ADMITTED_TIME] = { .type = NLA_U16 }, [NL80211_ATTR_SMPS_MODE] = { .type = NLA_U8 }, + [NL80211_ATTR_OPER_CLASS] = { .type = NLA_U8 }, [NL80211_ATTR_MAC_MASK] = { .type = NLA_EXACT_LEN_WARN, .len = ETH_ALEN |