4 #include <linux/types.h>
6 /****************** CONSTANT AND MACRO SECTION ******************************/
10 WLAN_BSSTYPE_INFRASTRUCTURE = 0,
11 WLAN_BSSTYPE_INDEPENDENT,
17 /* Preamble_Type, see <SFS-802.11G-MIB-203> */
18 typedef enum preamble_type {
19 WLAN_PREAMBLE_TYPE_SHORT,
20 WLAN_PREAMBLE_TYPE_LONG,
24 /* Slot_Time_Type, see <SFS-802.11G-MIB-208> */
25 typedef enum slot_time_type {
26 WLAN_SLOT_TIME_TYPE_LONG,
27 WLAN_SLOT_TIME_TYPE_SHORT,
30 /*--------------------------------------------------------------------------*/
46 typedef enum _WLAN_RADIO {
49 WLAN_RADIO_MAX, // not a real type, defined as an upper bound
52 typedef struct _WLAN_RADIO_STATUS {
57 //----------------------------------------------------------------------------
58 // 20041021 1.1.81.1000 ybjiang
59 // add for radio notification
61 void (*RADIO_NOTIFICATION_HANDLER)(
63 void *RadioStatusBuffer,
64 u32 RadioStatusBufferLen
67 typedef struct _WLAN_RADIO_NOTIFICATION
69 RADIO_NOTIFICATION_HANDLER RadioChangeHandler;
71 } WLAN_RADIO_NOTIFICATION;
73 //----------------------------------------------------------------------------
74 // 20041102 1.1.91.1000 ybjiang
75 // add for OID_802_11_CUST_REGION_CAPABILITIES and OID_802_11_OID_REGION
76 typedef enum _WLAN_REGION_CODE
85 WLAN_REGION_MAX, // not a real type, defined as an upper bound
88 #define REGION_NAME_MAX_LENGTH 256
90 typedef struct _WLAN_REGION_CHANNELS
94 u8 Name[REGION_NAME_MAX_LENGTH];
95 WLAN_REGION_CODE Code;
97 } WLAN_REGION_CHANNELS;
99 typedef struct _WLAN_REGION_CAPABILITIES
102 WLAN_REGION_CHANNELS Region[1];
103 } WLAN_REGION_CAPABILITIES;
105 typedef struct _region_name_map {
106 WLAN_REGION_CODE region;
111 /*--------------------------------------------------------------------------*/
112 #define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
113 #define MACSTR "%02X:%02X:%02X:%02X:%02X:%02X"
116 #define MIC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
117 #define MICSTR "%02X %02X %02X %02X %02X %02X %02X %02X"
119 #define MICKEY2STR(a) MIC2STR(a)
120 #define MICKEYSTR MICSTR
123 #endif /* __GL_80211_H__ */
124 /*** end of file ***/