nl80211: Fix a GET_KEY reply attribute
authorAndrew Zaborowski <andrew.zaborowski@intel.com>
Mon, 24 Sep 2018 16:10:22 +0000 (18:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:22:56 +0000 (08:22 +0100)
commita6ee16520c0a16916f9514211518c0972b05edaf
treee8abb20418fb150adad19ac0982fc7835b9e75f1
parentcd51659e864b2c9e8d844f9ddde6b84df39da856
nl80211: Fix a GET_KEY reply attribute

[ Upstream commit efdfce7270de85a8706d1ea051bef3a7486809ff ]

Use the NL80211_KEY_IDX attribute inside the NL80211_ATTR_KEY in
NL80211_CMD_GET_KEY responses to comply with nl80211_key_policy.
This is unlikely to affect existing userspace.

Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/nl80211.c