aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-12-23 16:12:07 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-23 16:12:07 (GMT)
commit82554b100c22c7e2ba51c81b0e247f03e08b2716 (patch)
tree96ecd128ca2957b5f28961b936c2de60c4aa2790 /src
parent36488c054cbedb44070472a4cbd9de340f041a1f (diff)
downloadhostap-82554b100c22c7e2ba51c81b0e247f03e08b2716.zip
hostap-82554b100c22c7e2ba51c81b0e247f03e08b2716.tar.gz
hostap-82554b100c22c7e2ba51c81b0e247f03e08b2716.tar.bz2
nl80211: Show station flush failures in debug log
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 52305fc..6d518bd 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -7046,6 +7046,7 @@ static int i802_flush(void *priv)
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;
struct nl_msg *msg;
+ int res;
msg = nlmsg_alloc();
if (!msg)
@@ -7059,7 +7060,12 @@ static int i802_flush(void *priv)
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX,
if_nametoindex(bss->ifname));
- return send_and_recv_msgs(drv, msg, NULL, NULL);
+ res = send_and_recv_msgs(drv, msg, NULL, NULL);
+ if (res) {
+ wpa_printf(MSG_DEBUG, "nl80211: Station flush failed: ret=%d "
+ "(%s)", res, strerror(-res));
+ }
+ return res;
nla_put_failure:
nlmsg_free(msg);
return -ENOBUFS;