5 /****************** CONSTANT AND MACRO SECTION ******************************/
9 WLAN_BSSTYPE_INFRASTRUCTURE = 0,
10 WLAN_BSSTYPE_INDEPENDENT,
16 /* Preamble_Type, see <SFS-802.11G-MIB-203> */
17 typedef enum preamble_type {
18 WLAN_PREAMBLE_TYPE_SHORT,
19 WLAN_PREAMBLE_TYPE_LONG,
23 /* Slot_Time_Type, see <SFS-802.11G-MIB-208> */
24 typedef enum slot_time_type {
25 WLAN_SLOT_TIME_TYPE_LONG,
26 WLAN_SLOT_TIME_TYPE_SHORT,
29 /*--------------------------------------------------------------------------*/
45 typedef enum _WLAN_RADIO {
48 WLAN_RADIO_MAX, // not a real type, defined as an upper bound
51 typedef struct _WLAN_RADIO_STATUS {
56 //----------------------------------------------------------------------------
57 // 20041021 1.1.81.1000 ybjiang
58 // add for radio notification
60 void (*RADIO_NOTIFICATION_HANDLER)(
62 void *RadioStatusBuffer,
63 u32 RadioStatusBufferLen
66 typedef struct _WLAN_RADIO_NOTIFICATION
68 RADIO_NOTIFICATION_HANDLER RadioChangeHandler;
70 } WLAN_RADIO_NOTIFICATION;
72 //----------------------------------------------------------------------------
73 // 20041102 1.1.91.1000 ybjiang
74 // add for OID_802_11_CUST_REGION_CAPABILITIES and OID_802_11_OID_REGION
75 typedef enum _WLAN_REGION_CODE
84 WLAN_REGION_MAX, // not a real type, defined as an upper bound
87 #define REGION_NAME_MAX_LENGTH 256
89 typedef struct _WLAN_REGION_CHANNELS
93 u8 Name[REGION_NAME_MAX_LENGTH];
94 WLAN_REGION_CODE Code;
96 } WLAN_REGION_CHANNELS;
98 typedef struct _WLAN_REGION_CAPABILITIES
101 WLAN_REGION_CHANNELS Region[1];
102 } WLAN_REGION_CAPABILITIES;
104 typedef struct _region_name_map {
105 WLAN_REGION_CODE region;
110 /*--------------------------------------------------------------------------*/
111 #define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
112 #define MACSTR "%02X:%02X:%02X:%02X:%02X:%02X"
115 #define MIC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
116 #define MICSTR "%02X %02X %02X %02X %02X %02X %02X %02X"
118 #define MICKEY2STR(a) MIC2STR(a)
119 #define MICKEYSTR MICSTR
122 #endif /* __GL_80211_H__ */
123 /*** end of file ***/