aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-27 17:06:52 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-27 17:35:12 (GMT)
commit3578e665bf4d6f4394f520538b2fe822acb21ace (patch)
tree5af22fe12e4052dc43d6107cba758d52c7790bc7 /hostapd
parent477689788c59f62a32c9d76e44838aa22bab0b05 (diff)
downloadhostap-3578e665bf4d6f4394f520538b2fe822acb21ace.zip
hostap-3578e665bf4d6f4394f520538b2fe822acb21ace.tar.gz
hostap-3578e665bf4d6f4394f520538b2fe822acb21ace.tar.bz2
WNM: Add STA flag to indicate the current WNM-Sleep-Mode state
This can be useful for displaying the current STA state and also for determining whether some operations are likely to fail or need additional delay. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/dump_state.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hostapd/dump_state.c b/hostapd/dump_state.c
index fcd9890..2fa387f 100644
--- a/hostapd/dump_state.c
+++ b/hostapd/dump_state.c
@@ -103,7 +103,7 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
fprintf(f, "\nSTA=" MACSTR "\n", MAC2STR(sta->addr));
fprintf(f,
- " AID=%d flags=0x%x %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
+ " AID=%d flags=0x%x %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
"\n"
" capability=0x%x listen_interval=%d\n",
sta->aid,
@@ -126,6 +126,10 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
(sta->flags & WLAN_STA_WDS ? "[WDS]" : ""),
(sta->flags & WLAN_STA_NONERP ? "[NonERP]" : ""),
(sta->flags & WLAN_STA_WPS2 ? "[WPS2]" : ""),
+ (sta->flags & WLAN_STA_GAS ? "[GAS]" : ""),
+ (sta->flags & WLAN_STA_VHT ? "[VHT]" : ""),
+ (sta->flags & WLAN_STA_WNM_SLEEP_MODE ?
+ "[WNM_SLEEP_MODE]" : ""),
sta->capability,
sta->listen_interval);