mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
nl80211: add missing attribute validation for channel switch
commit 5cde05c61cbe13cbb3fa66d52b9ae84f7975e5e6 upstream.
Add missing attribute validation for NL80211_ATTR_OPER_CLASS
to the netlink policy.
Fixes: 1057d35ede ("cfg80211: introduce TDLS channel switch commands")
Signed-off-by: Jakub Kicinski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
5bd0ee5727
commit
b575429341
1 changed files with 1 additions and 0 deletions
|
|
@ -564,6 +564,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue