diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-02-02 16:52:32 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-02-02 16:52:32 +0200 |
commit | 6905dcb1e07a0115c2054ed74dff072956c8f5e7 (patch) | |
tree | 5b932fbe0e40fd27bce1a9a5218db0ed0fd10e43 /hostapd/dump_state.c | |
parent | 839b33ad90d7d5addbcc2f255603ccf978516634 (diff) | |
download | external_wpa_supplicant_8_ti-6905dcb1e07a0115c2054ed74dff072956c8f5e7.zip external_wpa_supplicant_8_ti-6905dcb1e07a0115c2054ed74dff072956c8f5e7.tar.gz external_wpa_supplicant_8_ti-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.c | 3 |
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 ? |