aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-27 04:58:31 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-27 04:58:31 (GMT)
commit15664ad01a5a3383f1d283c360c9679dcc65b645 (patch)
tree6f1eec7274f03021b2ab4ff8ab148098d037d2ca
parentef580012d16e980011210f37aae2e50380feecf9 (diff)
downloadhostap-15664ad01a5a3383f1d283c360c9679dcc65b645.zip
hostap-15664ad01a5a3383f1d283c360c9679dcc65b645.tar.gz
hostap-15664ad01a5a3383f1d283c360c9679dcc65b645.tar.bz2
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.
-rw-r--r--src/drivers/driver_nl80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 5759760..a3cd65e 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -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)",