]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Print a debug log entry on NL80211_CMD_PROBE_CLIENT failures
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 10 Feb 2015 15:31:27 +0000 (17:31 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 10 Feb 2015 18:27:00 +0000 (20:27 +0200)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c

index 9d93cc9369f76b4efa97a43abeb33740d8364d17..adbe6eb2be6ffeccf614d0c52f42683862d17063 100644 (file)
@@ -6924,6 +6924,7 @@ static void nl80211_poll_client(void *priv, const u8 *own_addr, const u8 *addr,
        struct i802_bss *bss = priv;
        struct wpa_driver_nl80211_data *drv = bss->drv;
        struct nl_msg *msg;
+       int ret;
 
        if (!drv->poll_command_supported) {
                nl80211_send_null_frame(bss, own_addr, addr, qos);
@@ -6936,7 +6937,12 @@ static void nl80211_poll_client(void *priv, const u8 *own_addr, const u8 *addr,
                return;
        }
 
-       send_and_recv_msgs(drv, msg, NULL, NULL);
+       ret = send_and_recv_msgs(drv, msg, NULL, NULL);
+       if (ret < 0) {
+               wpa_printf(MSG_DEBUG, "nl80211: Client probe request for "
+                          MACSTR " failed: ret=%d (%s)",
+                          MAC2STR(addr), ret, strerror(-ret));
+       }
 }