]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Print debug info on STA flag changes
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 11 Sep 2014 08:25:04 +0000 (11:25 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 11 Sep 2014 08:25:04 +0000 (11:25 +0300)
This makes it easier to follow how kernel STA flags are managed.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c

index d7747b660a01b57c1349c89c6bb8e8ca389d229a..8ed2e971d2210aa9ec31a68c68324567481e3b8f 100644 (file)
@@ -8503,6 +8503,11 @@ static int wpa_driver_nl80211_sta_set_flags(void *priv, const u8 *addr,
        struct nlattr *flags;
        struct nl80211_sta_flag_update upd;
 
+       wpa_printf(MSG_DEBUG, "nl80211: Set STA flags - ifname=%s addr=" MACSTR
+                  " total_flags=0x%x flags_or=0x%x flags_and=0x%x authorized=%d",
+                  bss->ifname, MAC2STR(addr), total_flags, flags_or, flags_and,
+                  !!(total_flags & WPA_STA_AUTHORIZED));
+
        msg = nlmsg_alloc();
        if (!msg)
                return -ENOMEM;