]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
nl80211: fix NL80211_ATTR_FTM_RESPONDER policy
authorJohannes Berg <johannes.berg@intel.com>
Sat, 11 Apr 2020 22:40:30 +0000 (00:40 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 5 May 2020 10:32:22 +0000 (12:32 +0200)
commit2cab830e1fce4e626acf76c21543fd302933df17
tree773c5897aa9a95a91dff61ea35048a4a23f7caa0
parent3acdb162a2823b818041766533b5653b7e9b70bc
nl80211: fix NL80211_ATTR_FTM_RESPONDER policy

BugLink: https://bugs.launchpad.net/bugs/1874111
commit 0e012b4e4b5ec8e064be3502382579dd0bb43269 upstream.

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: 81e54d08d9d8 ("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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
net/wireless/nl80211.c