Revert "wifi: nl80211: don't give key data to userspace"
This reverts commit 54fc577e27
.
This commit is contained in:
parent
17917ff85a
commit
435344388b
1 changed files with 8 additions and 2 deletions
|
@ -4043,7 +4043,10 @@ static void get_key_callback(void *c, struct key_params *params)
|
|||
struct nlattr *key;
|
||||
struct get_key_cookie *cookie = c;
|
||||
|
||||
if ((params->seq &&
|
||||
if ((params->key &&
|
||||
nla_put(cookie->msg, NL80211_ATTR_KEY_DATA,
|
||||
params->key_len, params->key)) ||
|
||||
(params->seq &&
|
||||
nla_put(cookie->msg, NL80211_ATTR_KEY_SEQ,
|
||||
params->seq_len, params->seq)) ||
|
||||
(params->cipher &&
|
||||
|
@ -4055,7 +4058,10 @@ static void get_key_callback(void *c, struct key_params *params)
|
|||
if (!key)
|
||||
goto nla_put_failure;
|
||||
|
||||
if ((params->seq &&
|
||||
if ((params->key &&
|
||||
nla_put(cookie->msg, NL80211_KEY_DATA,
|
||||
params->key_len, params->key)) ||
|
||||
(params->seq &&
|
||||
nla_put(cookie->msg, NL80211_KEY_SEQ,
|
||||
params->seq_len, params->seq)) ||
|
||||
(params->cipher &&
|
||||
|
|
Loading…
Reference in a new issue