mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
nl80211: fix NL80211_ATTR_FTM_RESPONDER policy
commit0e012b4e4bupstream. The nested policy here should be established using the NLA_POLICY_NESTED() macro so the length is properly filled in. Cc: stable@vger.kernel.org Fixes:81e54d08d9("cfg80211: support FTM responder configuration/statistics") Link: https://lore.kernel.org/r/20200412004029.9d0722bb56c8.Ie690bfcc4a1a61ff8d8ca7e475d59fcaa52fb2da@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
08b63fe1a8
commit
a7e55e7c23
@@ -618,10 +618,8 @@ const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = {
|
|||||||
[NL80211_ATTR_HE_CAPABILITY] = { .type = NLA_BINARY,
|
[NL80211_ATTR_HE_CAPABILITY] = { .type = NLA_BINARY,
|
||||||
.len = NL80211_HE_MAX_CAPABILITY_LEN },
|
.len = NL80211_HE_MAX_CAPABILITY_LEN },
|
||||||
|
|
||||||
[NL80211_ATTR_FTM_RESPONDER] = {
|
[NL80211_ATTR_FTM_RESPONDER] =
|
||||||
.type = NLA_NESTED,
|
NLA_POLICY_NESTED(nl80211_ftm_responder_policy),
|
||||||
.validation_data = nl80211_ftm_responder_policy,
|
|
||||||
},
|
|
||||||
[NL80211_ATTR_TIMEOUT] = NLA_POLICY_MIN(NLA_U32, 1),
|
[NL80211_ATTR_TIMEOUT] = NLA_POLICY_MIN(NLA_U32, 1),
|
||||||
[NL80211_ATTR_PEER_MEASUREMENTS] =
|
[NL80211_ATTR_PEER_MEASUREMENTS] =
|
||||||
NLA_POLICY_NESTED(nl80211_pmsr_attr_policy),
|
NLA_POLICY_NESTED(nl80211_pmsr_attr_policy),
|
||||||
|
|||||||
Reference in New Issue
Block a user