diff --git a/hostapd/drv_callbacks.c b/hostapd/drv_callbacks.c index de5e3794a..5fde2496b 100644 --- a/hostapd/drv_callbacks.c +++ b/hostapd/drv_callbacks.c @@ -19,7 +19,6 @@ #include "driver_i.h" #include "ieee802_11.h" #include "radius/radius.h" -#include "sta_flags.h" #include "sta_info.h" #include "accounting.h" #include "tkip_countermeasures.h" diff --git a/hostapd/dump_state.c b/hostapd/dump_state.c index dcd21bb76..408ef1e49 100644 --- a/hostapd/dump_state.c +++ b/hostapd/dump_state.c @@ -23,7 +23,6 @@ #include "eap_server/eap.h" #include "hostapd.h" #include "config.h" -#include "sta_flags.h" #include "sta_info.h" diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c index 65886e181..0a33b099d 100644 --- a/hostapd/hostapd.c +++ b/hostapd/hostapd.c @@ -33,7 +33,6 @@ #include "accounting.h" #include "iapp.h" #include "ieee802_11_auth.h" -#include "sta_flags.h" #include "sta_info.h" #include "ap_list.h" #include "driver_i.h" diff --git a/hostapd/iapp.c b/hostapd/iapp.c index 001e46e86..e4db6e6ea 100644 --- a/hostapd/iapp.c +++ b/hostapd/iapp.c @@ -52,7 +52,6 @@ #include "ieee802_11.h" #include "iapp.h" #include "eloop.h" -#include "sta_flags.h" #include "sta_info.h" diff --git a/hostapd/ieee802_11.c b/hostapd/ieee802_11.c index b8d044322..63f14294b 100644 --- a/hostapd/ieee802_11.c +++ b/hostapd/ieee802_11.c @@ -29,7 +29,6 @@ #include "beacon.h" #include "hw_features.h" #include "ieee802_11_auth.h" -#include "sta_flags.h" #include "sta_info.h" #include "ieee802_1x.h" #include "wpa.h" diff --git a/hostapd/ieee802_11_ht.c b/hostapd/ieee802_11_ht.c index 817e1e734..1cf612b6e 100644 --- a/hostapd/ieee802_11_ht.c +++ b/hostapd/ieee802_11_ht.c @@ -19,7 +19,6 @@ #include "drivers/driver.h" #include "hostapd.h" #include "config.h" -#include "sta_flags.h" #include "sta_info.h" #include "beacon.h" #include "ieee802_11.h" diff --git a/hostapd/ieee802_1x.c b/hostapd/ieee802_1x.c index d0f077f7f..813ee5e52 100644 --- a/hostapd/ieee802_1x.c +++ b/hostapd/ieee802_1x.c @@ -27,7 +27,6 @@ #include "hostapd.h" #include "ieee802_1x.h" #include "accounting.h" -#include "sta_flags.h" #include "sta_info.h" #include "wpa.h" #include "preauth.h" diff --git a/hostapd/mlme.c b/hostapd/mlme.c index 127df37ac..adc7ce6aa 100644 --- a/hostapd/mlme.c +++ b/hostapd/mlme.c @@ -19,7 +19,6 @@ #include "common.h" #include "ieee802_11.h" #include "wpa.h" -#include "sta_flags.h" #include "sta_info.h" #include "mlme.h" diff --git a/hostapd/preauth.c b/hostapd/preauth.c index 9db638012..d544fc518 100644 --- a/hostapd/preauth.c +++ b/hostapd/preauth.c @@ -22,7 +22,6 @@ #include "l2_packet/l2_packet.h" #include "ieee802_1x.h" #include "eloop.h" -#include "sta_flags.h" #include "sta_info.h" #include "common/wpa_common.h" #include "eapol_auth/eapol_auth_sm.h" diff --git a/hostapd/sta_flags.h b/hostapd/sta_flags.h deleted file mode 100644 index a790039a5..000000000 --- a/hostapd/sta_flags.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * hostapd - driver interface definition - * Copyright (c) 2002-2009, Jouni Malinen - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Alternatively, this software may be distributed under the terms of BSD - * license. - * - * See README and COPYING for more details. - */ - -#ifndef STA_FLAGS_H -#define STA_FLAGS_H - -/* STA flags */ -#define WLAN_STA_AUTH BIT(0) -#define WLAN_STA_ASSOC BIT(1) -#define WLAN_STA_PS BIT(2) -#define WLAN_STA_TIM BIT(3) -#define WLAN_STA_PERM BIT(4) -#define WLAN_STA_AUTHORIZED BIT(5) -#define WLAN_STA_PENDING_POLL BIT(6) /* pending activity poll not ACKed */ -#define WLAN_STA_SHORT_PREAMBLE BIT(7) -#define WLAN_STA_PREAUTH BIT(8) -#define WLAN_STA_WMM BIT(9) -#define WLAN_STA_MFP BIT(10) -#define WLAN_STA_HT BIT(11) -#define WLAN_STA_WPS BIT(12) -#define WLAN_STA_MAYBE_WPS BIT(13) -#define WLAN_STA_NONERP BIT(31) - -#endif /* STA_FLAGS_H */ diff --git a/hostapd/sta_info.c b/hostapd/sta_info.c index dd954027b..2a2d7bacc 100644 --- a/hostapd/sta_info.c +++ b/hostapd/sta_info.c @@ -16,7 +16,6 @@ #include "common.h" #include "hostapd.h" -#include "sta_flags.h" #include "sta_info.h" #include "eloop.h" #include "accounting.h" diff --git a/hostapd/sta_info.h b/hostapd/sta_info.h index bd4b3e46e..6a98387aa 100644 --- a/hostapd/sta_info.h +++ b/hostapd/sta_info.h @@ -1,6 +1,6 @@ /* * hostapd / Station table - * Copyright (c) 2002-2008, Jouni Malinen + * Copyright (c) 2002-2009, Jouni Malinen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -15,6 +15,23 @@ #ifndef STA_INFO_H #define STA_INFO_H +/* STA flags */ +#define WLAN_STA_AUTH BIT(0) +#define WLAN_STA_ASSOC BIT(1) +#define WLAN_STA_PS BIT(2) +#define WLAN_STA_TIM BIT(3) +#define WLAN_STA_PERM BIT(4) +#define WLAN_STA_AUTHORIZED BIT(5) +#define WLAN_STA_PENDING_POLL BIT(6) /* pending activity poll not ACKed */ +#define WLAN_STA_SHORT_PREAMBLE BIT(7) +#define WLAN_STA_PREAUTH BIT(8) +#define WLAN_STA_WMM BIT(9) +#define WLAN_STA_MFP BIT(10) +#define WLAN_STA_HT BIT(11) +#define WLAN_STA_WPS BIT(12) +#define WLAN_STA_MAYBE_WPS BIT(13) +#define WLAN_STA_NONERP BIT(31) + /* Maximum number of supported rates (from both Supported Rates and Extended * Supported Rates IEs). */ #define WLAN_SUPP_RATES_MAX 32 @@ -25,7 +42,7 @@ struct sta_info { struct sta_info *hnext; /* next entry in hash table list */ u8 addr[6]; u16 aid; /* STA's unique AID (1 .. 2007) or 0 if not yet assigned */ - u32 flags; + u32 flags; /* Bitfield of WLAN_STA_* */ u16 capability; u16 listen_interval; /* or beacon_int for APs */ u8 supported_rates[WLAN_SUPP_RATES_MAX]; diff --git a/hostapd/tkip_countermeasures.c b/hostapd/tkip_countermeasures.c index 53747a466..8c7d82a35 100644 --- a/hostapd/tkip_countermeasures.c +++ b/hostapd/tkip_countermeasures.c @@ -18,7 +18,6 @@ #include "hostapd.h" #include "eloop.h" #include "driver_i.h" -#include "sta_flags.h" #include "sta_info.h" #include "mlme.h" #include "wpa.h" diff --git a/hostapd/wme.c b/hostapd/wme.c index 818ded72a..8e17a4170 100644 --- a/hostapd/wme.c +++ b/hostapd/wme.c @@ -19,7 +19,6 @@ #include "hostapd.h" #include "ieee802_11.h" #include "wme.h" -#include "sta_flags.h" #include "sta_info.h" #include "driver_i.h" diff --git a/hostapd/wps_hostapd.c b/hostapd/wps_hostapd.c index da6c4a5ad..f0a506d0c 100644 --- a/hostapd/wps_hostapd.c +++ b/hostapd/wps_hostapd.c @@ -28,7 +28,6 @@ #include "wps/wps_dev_attr.h" #include "hostapd.h" #include "driver_i.h" -#include "sta_flags.h" #include "sta_info.h" #include "wps_hostapd.h"