]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 14 Apr 2020 10:28:48 +0000 (12:28 +0200)
commit0e012b4e4b5ec8e064be3502382579dd0bb43269
treeb5263d6e9cea3dfa4d29193631c05b5ca776a698
parente154659ba39a1c2be576aaa0a5bda8088d707950
nl80211: fix NL80211_ATTR_FTM_RESPONDER policy

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>
net/wireless/nl80211.c