nl80211: Print debug info on STA flag changes

This makes it easier to follow how kernel STA flags are managed.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2014-09-11 11:25:04 +03:00 committed by Jouni Malinen
parent 17e2091279
commit 0cd9846c63

View 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;