aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/dump_state.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-02-02 14:52:32 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-02 14:52:32 (GMT)
commit6905dcb1e07a0115c2054ed74dff072956c8f5e7 (patch)
tree5b932fbe0e40fd27bce1a9a5218db0ed0fd10e43 /hostapd/dump_state.c
parent839b33ad90d7d5addbcc2f255603ccf978516634 (diff)
downloadhostap-6905dcb1e07a0115c2054ed74dff072956c8f5e7.zip
hostap-6905dcb1e07a0115c2054ed74dff072956c8f5e7.tar.gz
hostap-6905dcb1e07a0115c2054ed74dff072956c8f5e7.tar.bz2
AP: Introduce sta authorized wrappers
To enable making state change notifications on the WLAN_STA_AUTHORIZED flag, introduce ap_sta_set_authorized(), and to reduce use of the flag itself also add a wrapper for testing the flag: ap_sta_is_authorized(). Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'hostapd/dump_state.c')
-rw-r--r--hostapd/dump_state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hostapd/dump_state.c b/hostapd/dump_state.c
index bba3068..73aa93d 100644
--- a/hostapd/dump_state.c
+++ b/hostapd/dump_state.c
@@ -115,8 +115,7 @@ static void hostapd_dump_state(struct hostapd_data *hapd)
(sta->flags & WLAN_STA_PS ? "[PS]" : ""),
(sta->flags & WLAN_STA_TIM ? "[TIM]" : ""),
(sta->flags & WLAN_STA_PERM ? "[PERM]" : ""),
- (sta->flags & WLAN_STA_AUTHORIZED ? "[AUTHORIZED]" :
- ""),
+ (ap_sta_is_authorized(sta) ? "[AUTHORIZED]" : ""),
(sta->flags & WLAN_STA_PENDING_POLL ? "[PENDING_POLL" :
""),
(sta->flags & WLAN_STA_SHORT_PREAMBLE ?