diff options
author | Andrew Zaborowski <andrew.zaborowski@intel.com> | 2018-09-24 18:10:22 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-10-02 09:56:30 +0200 |
commit | efdfce7270de85a8706d1ea051bef3a7486809ff (patch) | |
tree | 4dbdbe08fa287c771d7a6803dcb3f1cf08d99cf2 /net/wireless/nl80211.c | |
parent | 48f3b9e989725127e0edf1cc2f2e169094d03a43 (diff) | |
download | linux-efdfce7270de85a8706d1ea051bef3a7486809ff.tar.gz linux-efdfce7270de85a8706d1ea051bef3a7486809ff.tar.bz2 linux-efdfce7270de85a8706d1ea051bef3a7486809ff.zip |
nl80211: Fix a GET_KEY reply attribute
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>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 0827cbdbb7b6..90788ebe794e 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -3351,7 +3351,7 @@ static void get_key_callback(void *c, struct key_params *params) params->cipher))) goto nla_put_failure; - if (nla_put_u8(cookie->msg, NL80211_ATTR_KEY_IDX, cookie->idx)) + if (nla_put_u8(cookie->msg, NL80211_KEY_IDX, cookie->idx)) goto nla_put_failure; nla_nest_end(cookie->msg, key); |