]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Show station flush failures in debug log
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 23 Dec 2011 16:12:07 +0000 (18:12 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 23 Dec 2011 16:12:07 +0000 (18:12 +0200)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/drivers/driver_nl80211.c

index 52305fce5c94a40cd637e703aa2e0a882889620e..6d518bdb7ecb47db0c75c296cb18fd698fb13730 100644 (file)
@@ -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;