mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
nl80211: Silence set_key ENOLINK failure messages on key clearing
This happens in common case and is expected, so there is no need to include the potentially confusing failure message in the debug log.
This commit is contained in:
parent
ef580012d1
commit
15664ad01a
@ -2013,7 +2013,7 @@ static int wpa_driver_nl80211_set_key(const char *ifname, void *priv,
|
||||
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, ifindex);
|
||||
|
||||
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
|
||||
if (ret == -ENOENT && alg == WPA_ALG_NONE)
|
||||
if ((ret == -ENOENT || ret == -ENOLINK) && alg == WPA_ALG_NONE)
|
||||
ret = 0;
|
||||
if (ret)
|
||||
wpa_printf(MSG_DEBUG, "nl80211: set_key failed; err=%d %s)",
|
||||
|
Loading…
Reference in New Issue
Block a user