Merge hostapd/sta_flags.h into sta_info.h
authorJouni Malinen <j@w1.fi>
Sun, 13 Dec 2009 09:41:46 +0000 (11:41 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 13 Dec 2009 09:41:46 +0000 (11:41 +0200)
The separate header file is not needed since none of the driver wrappers
include it anymore. Move the WLAN_STA_* definitions back to be together
with struct sta_info definition.

15 files changed:
hostapd/drv_callbacks.c
hostapd/dump_state.c
hostapd/hostapd.c
hostapd/iapp.c
hostapd/ieee802_11.c
hostapd/ieee802_11_ht.c
hostapd/ieee802_1x.c
hostapd/mlme.c
hostapd/preauth.c
hostapd/sta_flags.h [deleted file]
hostapd/sta_info.c
hostapd/sta_info.h
hostapd/tkip_countermeasures.c
hostapd/wme.c
hostapd/wps_hostapd.c

index de5e379..5fde249 100644 (file)
@@ -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"
index dcd21bb..408ef1e 100644 (file)
@@ -23,7 +23,6 @@
 #include "eap_server/eap.h"
 #include "hostapd.h"
 #include "config.h"
-#include "sta_flags.h"
 #include "sta_info.h"
 
 
index 65886e1..0a33b09 100644 (file)
@@ -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"
index 001e46e..e4db6e6 100644 (file)
@@ -52,7 +52,6 @@
 #include "ieee802_11.h"
 #include "iapp.h"
 #include "eloop.h"
-#include "sta_flags.h"
 #include "sta_info.h"
 
 
index b8d0443..63f1429 100644 (file)
@@ -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"
index 817e1e7..1cf612b 100644 (file)
@@ -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"
index d0f077f..813ee5e 100644 (file)
@@ -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"
index 127df37..adc7ce6 100644 (file)
@@ -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"
 
index 9db6380..d544fc5 100644 (file)
@@ -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 (file)
index a790039..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * hostapd - driver interface definition
- * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
- *
- * 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 */
index dd95402..2a2d7ba 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "common.h"
 #include "hostapd.h"
-#include "sta_flags.h"
 #include "sta_info.h"
 #include "eloop.h"
 #include "accounting.h"
index bd4b3e4..6a98387 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * hostapd / Station table
- * Copyright (c) 2002-2008, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
  *
  * 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
 #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];
index 53747a4..8c7d82a 100644 (file)
@@ -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"
index 818ded7..8e17a41 100644 (file)
@@ -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"
 
index da6c4a5..f0a506d 100644 (file)
@@ -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"