]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Add more debug prints for DEL_STATION commands
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 23 Aug 2013 09:03:28 +0000 (12:03 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 23 Aug 2013 09:03:28 +0000 (12:03 +0300)
This makes the debug log clearer on AP mode STA operations.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/drivers/driver_nl80211.c

index 2f30cda99dd9159c3e80b944f89c432ce9e0ff0e..c3c9aff771440f464cb1bcdaa47d6747453eb2b8 100644 (file)
@@ -6686,6 +6686,9 @@ static int wpa_driver_nl80211_sta_remove(struct i802_bss *bss, const u8 *addr)
        NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, addr);
 
        ret = send_and_recv_msgs(drv, msg, NULL, NULL);
+       wpa_printf(MSG_DEBUG, "nl80211: sta_remove -> DEL_STATION %s " MACSTR
+                  " --> %d (%s)",
+                  bss->ifname, MAC2STR(addr), ret, strerror(-ret));
        if (ret == -ENOENT)
                return 0;
        return ret;
@@ -8364,6 +8367,8 @@ static int i802_flush(void *priv)
        if (!msg)
                return -1;
 
+       wpa_printf(MSG_DEBUG, "nl80211: flush -> DEL_STATION %s (all)",
+                  bss->ifname);
        nl80211_cmd(drv, msg, 0, NL80211_CMD_DEL_STATION);
 
        /*