2009-06-13 05:38:31 -06:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* File: 80211mgr.h
|
|
|
|
*
|
2010-06-11 04:17:04 -06:00
|
|
|
* Purpose: 802.11 management frames pre-defines.
|
2009-06-13 05:38:31 -06:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Author: Lyndon Chen
|
|
|
|
*
|
|
|
|
* Date: May 8, 2002
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __80211MGR_H__
|
|
|
|
#define __80211MGR_H__
|
|
|
|
|
|
|
|
#include "80211hdr.h"
|
|
|
|
|
|
|
|
#define WLAN_MIN_ARRAY 1
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* Information Element ID value */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_EID_SSID 0
|
|
|
|
#define WLAN_EID_SUPP_RATES 1
|
|
|
|
#define WLAN_EID_FH_PARMS 2
|
|
|
|
#define WLAN_EID_DS_PARMS 3
|
|
|
|
#define WLAN_EID_CF_PARMS 4
|
|
|
|
#define WLAN_EID_TIM 5
|
|
|
|
#define WLAN_EID_IBSS_PARMS 6
|
|
|
|
#define WLAN_EID_COUNTRY 7
|
|
|
|
#define WLAN_EID_CHALLENGE 16
|
|
|
|
#define WLAN_EID_PWR_CONSTRAINT 32
|
|
|
|
#define WLAN_EID_PWR_CAPABILITY 33
|
|
|
|
#define WLAN_EID_TPC_REQ 34
|
|
|
|
#define WLAN_EID_TPC_REP 35
|
|
|
|
#define WLAN_EID_SUPP_CH 36
|
|
|
|
#define WLAN_EID_CH_SWITCH 37
|
|
|
|
#define WLAN_EID_MEASURE_REQ 38
|
|
|
|
#define WLAN_EID_MEASURE_REP 39
|
|
|
|
#define WLAN_EID_QUIET 40
|
|
|
|
#define WLAN_EID_IBSS_DFS 41
|
|
|
|
#define WLAN_EID_ERP 42
|
2013-01-31 12:33:19 -07:00
|
|
|
/* reference 802.11i 7.3.2 table 20 */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_EID_RSN 48
|
|
|
|
#define WLAN_EID_EXTSUPP_RATES 50
|
2013-01-31 12:33:19 -07:00
|
|
|
/* reference WiFi WPA spec */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_EID_RSN_WPA 221
|
|
|
|
|
|
|
|
#ifdef Cisco_ccx
|
2010-08-03 17:25:50 -06:00
|
|
|
#define WLAN_EID_CCX 133
|
|
|
|
#define WLAN_EID_CCX_IP 149
|
|
|
|
#define WLAN_EID_CCX_Ver 221
|
2009-06-13 05:38:31 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define WLAN_EID_ERP_NONERP_PRESENT 0x01
|
|
|
|
#define WLAN_EID_ERP_USE_PROTECTION 0x02
|
|
|
|
#define WLAN_EID_ERP_BARKER_MODE 0x04
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* reason codes */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_MGMT_REASON_RSVD 0
|
|
|
|
#define WLAN_MGMT_REASON_UNSPEC 1
|
|
|
|
#define WLAN_MGMT_REASON_PRIOR_AUTH_INVALID 2
|
|
|
|
#define WLAN_MGMT_REASON_DEAUTH_LEAVING 3
|
|
|
|
#define WLAN_MGMT_REASON_DISASSOC_INACTIVE 4
|
|
|
|
#define WLAN_MGMT_REASON_DISASSOC_AP_BUSY 5
|
|
|
|
#define WLAN_MGMT_REASON_CLASS2_NONAUTH 6
|
|
|
|
#define WLAN_MGMT_REASON_CLASS3_NONASSOC 7
|
|
|
|
#define WLAN_MGMT_REASON_DISASSOC_STA_HASLEFT 8
|
|
|
|
#define WLAN_MGMT_REASON_CANT_ASSOC_NONAUTH 9
|
|
|
|
#define WLAN_MGMT_REASON_DISASSOC_PWR_CAP_UNACCEPT 10
|
|
|
|
#define WLAN_MGMT_REASON_DISASSOC_SUPP_CH_UNACCEPT 11
|
|
|
|
#define WLAN_MGMT_REASON_INVALID_IE 13
|
|
|
|
#define WLAN_MGMT_REASON_MIC_FAILURE 14
|
|
|
|
#define WLAN_MGMT_REASON_4WAY_HANDSHAKE_TIMEOUT 15
|
|
|
|
#define WLAN_MGMT_REASON_GRPKEY_UPDATE_TIMEOUT 16
|
|
|
|
#define WLAN_MGMT_REASON_4WAY_INFO_DIFFERENT 17
|
|
|
|
#define WLAN_MGMT_REASON_MULTCAST_CIPHER_INVALID 18
|
|
|
|
#define WLAN_MGMT_REASON_UNCAST_CIPHER_INVALID 19
|
|
|
|
#define WLAN_MGMT_REASON_AKMP_INVALID 20
|
|
|
|
#define WLAN_MGMT_REASON_RSNE_UNSUPPORTED 21
|
|
|
|
#define WLAN_MGMT_REASON_RSNE_CAP_INVALID 22
|
|
|
|
#define WLAN_MGMT_REASON_80211X_AUTH_FAILED 23
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* status codes */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_MGMT_STATUS_SUCCESS 0
|
|
|
|
#define WLAN_MGMT_STATUS_UNSPEC_FAILURE 1
|
|
|
|
#define WLAN_MGMT_STATUS_CAPS_UNSUPPORTED 10
|
|
|
|
#define WLAN_MGMT_STATUS_REASSOC_NO_ASSOC 11
|
|
|
|
#define WLAN_MGMT_STATUS_ASSOC_DENIED_UNSPEC 12
|
|
|
|
#define WLAN_MGMT_STATUS_UNSUPPORTED_AUTHALG 13
|
|
|
|
#define WLAN_MGMT_STATUS_RX_AUTH_NOSEQ 14
|
|
|
|
#define WLAN_MGMT_STATUS_CHALLENGE_FAIL 15
|
|
|
|
#define WLAN_MGMT_STATUS_AUTH_TIMEOUT 16
|
|
|
|
#define WLAN_MGMT_STATUS_ASSOC_DENIED_BUSY 17
|
|
|
|
#define WLAN_MGMT_STATUS_ASSOC_DENIED_RATES 18
|
|
|
|
#define WLAN_MGMT_STATUS_ASSOC_DENIED_SHORTPREAMBLE 19
|
|
|
|
#define WLAN_MGMT_STATUS_ASSOC_DENIED_PBCC 20
|
|
|
|
#define WLAN_MGMT_STATUS_ASSOC_DENIED_AGILITY 21
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* reference 802.11h 7.3.1.9 */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_MGMT_STATUS_ASSOC_REJECT_BCS_SPECTRUM_MNG 22
|
|
|
|
#define WLAN_MGMT_STATUS_ASSOC_REJECT_BCS_PWR_CAP 23
|
|
|
|
#define WLAN_MGMT_STATUS_ASSOC_REJECT_BCS_SUPP_CH 24
|
2013-01-31 12:33:19 -07:00
|
|
|
|
|
|
|
/* reference 802.11g 7.3.1.9 */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_MGMT_STATUS_SHORTSLOTTIME_UNSUPPORTED 25
|
|
|
|
#define WLAN_MGMT_STATUS_DSSSOFDM_UNSUPPORTED 26
|
2013-01-31 12:33:19 -07:00
|
|
|
|
|
|
|
/* reference 802.11i 7.3.1.9 table 19 */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_MGMT_STATUS_INVALID_IE 40
|
|
|
|
#define WLAN_MGMT_STATUS_GROUP_CIPHER_INVALID 41
|
|
|
|
#define WLAN_MGMT_STATUS_PAIRWISE_CIPHER_INVALID 42
|
|
|
|
#define WLAN_MGMT_STATUS_AKMP_INVALID 43
|
|
|
|
#define WLAN_MGMT_STATUS_UNSUPPORT_RSN_IE_VER 44
|
|
|
|
#define WLAN_MGMT_STATUS_INVALID_RSN_IE_CAP 45
|
|
|
|
#define WLAN_MGMT_STATUS_CIPHER_REJECT 46
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* auth algorithm */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_AUTH_ALG_OPENSYSTEM 0
|
|
|
|
#define WLAN_AUTH_ALG_SHAREDKEY 1
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* management frame field offsets */
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/*
|
|
|
|
* Note: Not all fields are listed because of variable lengths
|
|
|
|
* Note: These offsets are from the start of the frame data
|
|
|
|
*/
|
2009-06-13 05:38:31 -06:00
|
|
|
|
|
|
|
#define WLAN_BEACON_OFF_TS 0
|
|
|
|
#define WLAN_BEACON_OFF_BCN_INT 8
|
|
|
|
#define WLAN_BEACON_OFF_CAPINFO 10
|
|
|
|
#define WLAN_BEACON_OFF_SSID 12
|
|
|
|
|
|
|
|
#define WLAN_DISASSOC_OFF_REASON 0
|
|
|
|
|
|
|
|
#define WLAN_ASSOCREQ_OFF_CAP_INFO 0
|
|
|
|
#define WLAN_ASSOCREQ_OFF_LISTEN_INT 2
|
|
|
|
#define WLAN_ASSOCREQ_OFF_SSID 4
|
|
|
|
|
|
|
|
#define WLAN_ASSOCRESP_OFF_CAP_INFO 0
|
|
|
|
#define WLAN_ASSOCRESP_OFF_STATUS 2
|
|
|
|
#define WLAN_ASSOCRESP_OFF_AID 4
|
|
|
|
#define WLAN_ASSOCRESP_OFF_SUPP_RATES 6
|
|
|
|
|
|
|
|
#define WLAN_REASSOCREQ_OFF_CAP_INFO 0
|
|
|
|
#define WLAN_REASSOCREQ_OFF_LISTEN_INT 2
|
|
|
|
#define WLAN_REASSOCREQ_OFF_CURR_AP 4
|
|
|
|
#define WLAN_REASSOCREQ_OFF_SSID 10
|
|
|
|
|
|
|
|
#define WLAN_REASSOCRESP_OFF_CAP_INFO 0
|
|
|
|
#define WLAN_REASSOCRESP_OFF_STATUS 2
|
|
|
|
#define WLAN_REASSOCRESP_OFF_AID 4
|
|
|
|
#define WLAN_REASSOCRESP_OFF_SUPP_RATES 6
|
|
|
|
|
|
|
|
#define WLAN_PROBEREQ_OFF_SSID 0
|
|
|
|
|
|
|
|
#define WLAN_PROBERESP_OFF_TS 0
|
|
|
|
#define WLAN_PROBERESP_OFF_BCN_INT 8
|
|
|
|
#define WLAN_PROBERESP_OFF_CAP_INFO 10
|
|
|
|
#define WLAN_PROBERESP_OFF_SSID 12
|
|
|
|
|
|
|
|
#define WLAN_AUTHEN_OFF_AUTH_ALG 0
|
|
|
|
#define WLAN_AUTHEN_OFF_AUTH_SEQ 2
|
|
|
|
#define WLAN_AUTHEN_OFF_STATUS 4
|
|
|
|
#define WLAN_AUTHEN_OFF_CHALLENGE 6
|
|
|
|
|
|
|
|
#define WLAN_DEAUTHEN_OFF_REASON 0
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* cipher suite selectors defined in 802.11i */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_11i_CSS_USE_GROUP 0
|
|
|
|
#define WLAN_11i_CSS_WEP40 1
|
|
|
|
#define WLAN_11i_CSS_TKIP 2
|
|
|
|
#define WLAN_11i_CSS_CCMP 4
|
|
|
|
#define WLAN_11i_CSS_WEP104 5
|
|
|
|
#define WLAN_11i_CSS_UNKNOWN 255
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* authentication and key management suite selectors defined in 802.11i */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define WLAN_11i_AKMSS_802_1X 1
|
|
|
|
#define WLAN_11i_AKMSS_PSK 2
|
|
|
|
#define WLAN_11i_AKMSS_UNKNOWN 255
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* measurement type definitions reference IEEE 802.11h table 20b */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define MEASURE_TYPE_BASIC 0
|
|
|
|
#define MEASURE_TYPE_CCA 1
|
|
|
|
#define MEASURE_TYPE_RPI 2
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* measurement request mode definitions reference IEEE 802.11h figure 46h */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define MEASURE_MODE_ENABLE 0x02
|
|
|
|
#define MEASURE_MODE_REQ 0x04
|
|
|
|
#define MEASURE_MODE_REP 0x08
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* measurement report mode definitions reference IEEE 802.11h figure 46m */
|
2009-06-13 05:38:31 -06:00
|
|
|
#define MEASURE_MODE_LATE 0x01
|
|
|
|
#define MEASURE_MODE_INCAPABLE 0x02
|
|
|
|
#define MEASURE_MODE_REFUSED 0x04
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* Information Element types */
|
2009-06-13 05:38:31 -06:00
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
2010-05-26 17:00:36 -06:00
|
|
|
} __attribute__ ((__packed__))
|
2009-06-13 05:38:31 -06:00
|
|
|
WLAN_IE, *PWLAN_IE;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* Service Set IDentity (SSID) */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_SSID {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 abySSID[1];
|
2010-05-26 17:00:36 -06:00
|
|
|
} __attribute__ ((__packed__))
|
2009-06-13 05:38:31 -06:00
|
|
|
WLAN_IE_SSID, *PWLAN_IE_SSID;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* Supported Rates */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_SUPP_RATES {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 abyRates[1];
|
2010-05-26 17:00:36 -06:00
|
|
|
} __attribute__ ((__packed__))
|
2009-06-13 05:38:31 -06:00
|
|
|
WLAN_IE_SUPP_RATES, *PWLAN_IE_SUPP_RATES;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* FH Parameter Set */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct _WLAN_IE_FH_PARMS {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 wDwellTime;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byHopSet;
|
|
|
|
u8 byHopPattern;
|
|
|
|
u8 byHopIndex;
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_FH_PARMS, *PWLAN_IE_FH_PARMS;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* DS Parameter Set */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_DS_PARMS {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byCurrChannel;
|
2010-05-26 17:00:36 -06:00
|
|
|
} __attribute__ ((__packed__))
|
2009-06-13 05:38:31 -06:00
|
|
|
WLAN_IE_DS_PARMS, *PWLAN_IE_DS_PARMS;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* CF Parameter Set */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_CF_PARMS {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byCFPCount;
|
|
|
|
u8 byCFPPeriod;
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 wCFPMaxDuration;
|
|
|
|
u16 wCFPDurRemaining;
|
2010-05-26 17:00:36 -06:00
|
|
|
} __attribute__ ((__packed__))
|
2009-06-13 05:38:31 -06:00
|
|
|
WLAN_IE_CF_PARMS, *PWLAN_IE_CF_PARMS;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* TIM */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_TIM {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byDTIMCount;
|
|
|
|
u8 byDTIMPeriod;
|
|
|
|
u8 byBitMapCtl;
|
|
|
|
u8 byVirtBitMap[1];
|
2010-05-26 17:00:36 -06:00
|
|
|
} __attribute__ ((__packed__))
|
2009-06-13 05:38:31 -06:00
|
|
|
WLAN_IE_TIM, *PWLAN_IE_TIM;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* IBSS Parameter Set */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_IBSS_PARMS {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 wATIMWindow;
|
2010-05-26 17:00:36 -06:00
|
|
|
} __attribute__ ((__packed__))
|
2009-06-13 05:38:31 -06:00
|
|
|
WLAN_IE_IBSS_PARMS, *PWLAN_IE_IBSS_PARMS;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* Challenge Text */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_CHALLENGE {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 abyChallenge[1];
|
2010-05-26 17:00:36 -06:00
|
|
|
} __attribute__ ((__packed__))
|
2009-06-13 05:38:31 -06:00
|
|
|
WLAN_IE_CHALLENGE, *PWLAN_IE_CHALLENGE;
|
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_RSN_EXT {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 abyOUI[4];
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 wVersion;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 abyMulticast[4];
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 wPKCount;
|
2013-01-31 12:33:19 -07:00
|
|
|
struct {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 abyOUI[4];
|
2013-01-31 12:33:19 -07:00
|
|
|
} PKSList[1];
|
|
|
|
/* the rest is variable so need to overlay ieauth structure */
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_RSN_EXT, *PWLAN_IE_RSN_EXT;
|
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_RSN_AUTH {
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 wAuthCount;
|
2009-06-13 05:38:31 -06:00
|
|
|
struct {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 abyOUI[4];
|
2009-06-13 05:38:31 -06:00
|
|
|
} AuthKSList[1];
|
|
|
|
} WLAN_IE_RSN_AUTH, *PWLAN_IE_RSN_AUTH;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* RSN Identity */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_RSN {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 wVersion;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 abyRSN[WLAN_MIN_ARRAY];
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_RSN, *PWLAN_IE_RSN;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* CCX Identity DavidWang */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_CCX {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 abyCCX[30];
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_CCX, *PWLAN_IE_CCX;
|
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_CCX_IP {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 abyCCXOUI[4];
|
|
|
|
u8 abyCCXIP[4];
|
|
|
|
u8 abyCCXREV[2];
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_CCX_IP, *PWLAN_IE_CCX_IP;
|
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_CCX_Ver {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 abyCCXVer[5];
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_CCX_Ver, *PWLAN_IE_CCX_Ver;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* ERP */
|
2009-06-13 05:38:31 -06:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct tagWLAN_IE_ERP {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byContext;
|
2010-05-26 17:00:36 -06:00
|
|
|
} __attribute__ ((__packed__))
|
2009-06-13 05:38:31 -06:00
|
|
|
WLAN_IE_ERP, *PWLAN_IE_ERP;
|
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct _MEASEURE_REQ {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byChannel;
|
|
|
|
u8 abyStartTime[8];
|
|
|
|
u8 abyDuration[2];
|
2009-06-13 05:38:31 -06:00
|
|
|
} MEASEURE_REQ, *PMEASEURE_REQ,
|
|
|
|
MEASEURE_REQ_BASIC, *PMEASEURE_REQ_BASIC,
|
|
|
|
MEASEURE_REQ_CCA, *PMEASEURE_REQ_CCA,
|
|
|
|
MEASEURE_REQ_RPI, *PMEASEURE_REQ_RPI;
|
|
|
|
|
|
|
|
typedef struct _MEASEURE_REP_BASIC {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byChannel;
|
|
|
|
u8 abyStartTime[8];
|
|
|
|
u8 abyDuration[2];
|
|
|
|
u8 byMap;
|
2009-06-13 05:38:31 -06:00
|
|
|
} MEASEURE_REP_BASIC, *PMEASEURE_REP_BASIC;
|
|
|
|
|
|
|
|
typedef struct _MEASEURE_REP_CCA {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byChannel;
|
|
|
|
u8 abyStartTime[8];
|
|
|
|
u8 abyDuration[2];
|
|
|
|
u8 byCCABusyFraction;
|
2009-06-13 05:38:31 -06:00
|
|
|
} MEASEURE_REP_CCA, *PMEASEURE_REP_CCA;
|
|
|
|
|
|
|
|
typedef struct _MEASEURE_REP_RPI {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byChannel;
|
|
|
|
u8 abyStartTime[8];
|
|
|
|
u8 abyDuration[2];
|
|
|
|
u8 abyRPIdensity[8];
|
2009-06-13 05:38:31 -06:00
|
|
|
} MEASEURE_REP_RPI, *PMEASEURE_REP_RPI;
|
|
|
|
|
|
|
|
typedef union _MEASEURE_REP {
|
|
|
|
|
|
|
|
MEASEURE_REP_BASIC sBasic;
|
|
|
|
MEASEURE_REP_CCA sCCA;
|
|
|
|
MEASEURE_REP_RPI sRPI;
|
|
|
|
|
|
|
|
} MEASEURE_REP, *PMEASEURE_REP;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_MEASURE_REQ {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byToken;
|
|
|
|
u8 byMode;
|
|
|
|
u8 byType;
|
2009-06-13 05:38:31 -06:00
|
|
|
MEASEURE_REQ sReq;
|
|
|
|
} WLAN_IE_MEASURE_REQ, *PWLAN_IE_MEASURE_REQ;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_MEASURE_REP {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byToken;
|
|
|
|
u8 byMode;
|
|
|
|
u8 byType;
|
2009-06-13 05:38:31 -06:00
|
|
|
MEASEURE_REP sRep;
|
|
|
|
} WLAN_IE_MEASURE_REP, *PWLAN_IE_MEASURE_REP;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_CH_SW {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byMode;
|
|
|
|
u8 byChannel;
|
|
|
|
u8 byCount;
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_CH_SW, *PWLAN_IE_CH_SW;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_QUIET {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byQuietCount;
|
|
|
|
u8 byQuietPeriod;
|
|
|
|
u8 abyQuietDuration[2];
|
|
|
|
u8 abyQuietOffset[2];
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_QUIET, *PWLAN_IE_QUIET;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_COUNTRY {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 abyCountryString[3];
|
|
|
|
u8 abyCountryInfo[3];
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_COUNTRY, *PWLAN_IE_COUNTRY;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_PW_CONST {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byPower;
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_PW_CONST, *PWLAN_IE_PW_CONST;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_PW_CAP {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byMinPower;
|
|
|
|
u8 byMaxPower;
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_PW_CAP, *PWLAN_IE_PW_CAP;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_SUPP_CH {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 abyChannelTuple[2];
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_SUPP_CH, *PWLAN_IE_SUPP_CH;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_TPC_REQ {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_TPC_REQ, *PWLAN_IE_TPC_REQ;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_TPC_REP {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 byTxPower;
|
|
|
|
u8 byLinkMargin;
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_TPC_REP, *PWLAN_IE_TPC_REP;
|
|
|
|
|
|
|
|
typedef struct _WLAN_IE_IBSS_DFS {
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 byElementID;
|
|
|
|
u8 len;
|
|
|
|
u8 abyDFSOwner[6];
|
|
|
|
u8 byDFSRecovery;
|
|
|
|
u8 abyChannelMap[2];
|
2009-06-13 05:38:31 -06:00
|
|
|
} WLAN_IE_IBSS_DFS, *PWLAN_IE_IBSS_DFS;
|
|
|
|
|
|
|
|
#pragma pack()
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* frame types */
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* prototype structure, all mgmt frame types will start with these members */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_MGMT {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
|
|
|
|
|
|
|
} WLAN_FR_MGMT, *PWLAN_FR_MGMT;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* beacon frame */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_BEACON {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
2012-11-28 14:11:02 -07:00
|
|
|
u64 *pqwTimestamp;
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 * pwBeaconInterval;
|
|
|
|
u16 * pwCapInfo;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* info elements */
|
2009-06-13 05:38:31 -06:00
|
|
|
PWLAN_IE_SSID pSSID;
|
|
|
|
PWLAN_IE_SUPP_RATES pSuppRates;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* PWLAN_IE_FH_PARMS pFHParms; */
|
2009-06-13 05:38:31 -06:00
|
|
|
PWLAN_IE_DS_PARMS pDSParms;
|
|
|
|
PWLAN_IE_CF_PARMS pCFParms;
|
|
|
|
PWLAN_IE_TIM pTIM;
|
|
|
|
PWLAN_IE_IBSS_PARMS pIBSSParms;
|
|
|
|
PWLAN_IE_RSN pRSN;
|
|
|
|
PWLAN_IE_RSN_EXT pRSNWPA;
|
|
|
|
PWLAN_IE_ERP pERP;
|
|
|
|
PWLAN_IE_SUPP_RATES pExtSuppRates;
|
|
|
|
PWLAN_IE_COUNTRY pIE_Country;
|
|
|
|
PWLAN_IE_PW_CONST pIE_PowerConstraint;
|
|
|
|
PWLAN_IE_CH_SW pIE_CHSW;
|
|
|
|
PWLAN_IE_IBSS_DFS pIE_IBSSDFS;
|
|
|
|
PWLAN_IE_QUIET pIE_Quiet;
|
|
|
|
|
|
|
|
} WLAN_FR_BEACON, *PWLAN_FR_BEACON;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* IBSS ATIM frame */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_IBSSATIM {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
|
|
|
/* info elements */
|
|
|
|
/* this frame type has a null body */
|
2009-06-13 05:38:31 -06:00
|
|
|
|
|
|
|
} WLAN_FR_IBSSATIM, *PWLAN_FR_IBSSATIM;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* disassociation */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_DISASSOC {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 * pwReason;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* info elements */
|
2009-06-13 05:38:31 -06:00
|
|
|
|
|
|
|
} WLAN_FR_DISASSOC, *PWLAN_FR_DISASSOC;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* association request */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_ASSOCREQ {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 * pwCapInfo;
|
|
|
|
u16 * pwListenInterval;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* info elements */
|
2009-06-13 05:38:31 -06:00
|
|
|
PWLAN_IE_SSID pSSID;
|
|
|
|
PWLAN_IE_SUPP_RATES pSuppRates;
|
|
|
|
PWLAN_IE_RSN pRSN;
|
|
|
|
PWLAN_IE_CCX pCCX;
|
|
|
|
PWLAN_IE_CCX_IP pCCXIP;
|
|
|
|
PWLAN_IE_CCX_Ver pCCXVER;
|
|
|
|
PWLAN_IE_RSN_EXT pRSNWPA;
|
|
|
|
PWLAN_IE_SUPP_RATES pExtSuppRates;
|
|
|
|
PWLAN_IE_PW_CAP pCurrPowerCap;
|
|
|
|
PWLAN_IE_SUPP_CH pCurrSuppCh;
|
|
|
|
|
|
|
|
} WLAN_FR_ASSOCREQ, *PWLAN_FR_ASSOCREQ;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* association response */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_ASSOCRESP {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 * pwCapInfo;
|
|
|
|
u16 * pwStatus;
|
|
|
|
u16 * pwAid;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* info elements */
|
2009-06-13 05:38:31 -06:00
|
|
|
PWLAN_IE_SUPP_RATES pSuppRates;
|
|
|
|
PWLAN_IE_SUPP_RATES pExtSuppRates;
|
|
|
|
|
|
|
|
} WLAN_FR_ASSOCRESP, *PWLAN_FR_ASSOCRESP;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* reassociation request */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_REASSOCREQ {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 * pwCapInfo;
|
|
|
|
u16 * pwListenInterval;
|
2009-06-13 05:38:31 -06:00
|
|
|
PIEEE_ADDR pAddrCurrAP;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* info elements */
|
2009-06-13 05:38:31 -06:00
|
|
|
PWLAN_IE_SSID pSSID;
|
|
|
|
PWLAN_IE_SUPP_RATES pSuppRates;
|
|
|
|
PWLAN_IE_RSN pRSN;
|
|
|
|
PWLAN_IE_CCX pCCX;
|
|
|
|
PWLAN_IE_CCX_IP pCCXIP;
|
|
|
|
PWLAN_IE_CCX_Ver pCCXVER;
|
|
|
|
PWLAN_IE_RSN_EXT pRSNWPA;
|
|
|
|
PWLAN_IE_SUPP_RATES pExtSuppRates;
|
|
|
|
|
|
|
|
} WLAN_FR_REASSOCREQ, *PWLAN_FR_REASSOCREQ;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* reassociation response */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_REASSOCRESP {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 * pwCapInfo;
|
|
|
|
u16 * pwStatus;
|
|
|
|
u16 * pwAid;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* info elements */
|
2009-06-13 05:38:31 -06:00
|
|
|
PWLAN_IE_SUPP_RATES pSuppRates;
|
|
|
|
PWLAN_IE_SUPP_RATES pExtSuppRates;
|
|
|
|
|
|
|
|
} WLAN_FR_REASSOCRESP, *PWLAN_FR_REASSOCRESP;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* probe request */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_PROBEREQ {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
|
|
|
/* info elements */
|
2009-06-13 05:38:31 -06:00
|
|
|
PWLAN_IE_SSID pSSID;
|
|
|
|
PWLAN_IE_SUPP_RATES pSuppRates;
|
|
|
|
PWLAN_IE_SUPP_RATES pExtSuppRates;
|
|
|
|
|
|
|
|
} WLAN_FR_PROBEREQ, *PWLAN_FR_PROBEREQ;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* probe response */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_PROBERESP {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
2012-11-28 14:11:02 -07:00
|
|
|
u64 *pqwTimestamp;
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 * pwBeaconInterval;
|
|
|
|
u16 * pwCapInfo;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* info elements */
|
2009-06-13 05:38:31 -06:00
|
|
|
PWLAN_IE_SSID pSSID;
|
|
|
|
PWLAN_IE_SUPP_RATES pSuppRates;
|
|
|
|
PWLAN_IE_DS_PARMS pDSParms;
|
|
|
|
PWLAN_IE_CF_PARMS pCFParms;
|
|
|
|
PWLAN_IE_IBSS_PARMS pIBSSParms;
|
|
|
|
PWLAN_IE_RSN pRSN;
|
|
|
|
PWLAN_IE_RSN_EXT pRSNWPA;
|
|
|
|
PWLAN_IE_ERP pERP;
|
|
|
|
PWLAN_IE_SUPP_RATES pExtSuppRates;
|
|
|
|
PWLAN_IE_COUNTRY pIE_Country;
|
|
|
|
PWLAN_IE_PW_CONST pIE_PowerConstraint;
|
|
|
|
PWLAN_IE_CH_SW pIE_CHSW;
|
|
|
|
PWLAN_IE_IBSS_DFS pIE_IBSSDFS;
|
|
|
|
PWLAN_IE_QUIET pIE_Quiet;
|
|
|
|
|
|
|
|
} WLAN_FR_PROBERESP, *PWLAN_FR_PROBERESP;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* authentication */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_AUTHEN {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 * pwAuthAlgorithm;
|
|
|
|
u16 * pwAuthSequence;
|
|
|
|
u16 * pwStatus;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* info elements */
|
2009-06-13 05:38:31 -06:00
|
|
|
PWLAN_IE_CHALLENGE pChallenge;
|
|
|
|
|
|
|
|
} WLAN_FR_AUTHEN, *PWLAN_FR_AUTHEN;
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* deauthentication */
|
2009-06-13 05:38:31 -06:00
|
|
|
typedef struct tagWLAN_FR_DEAUTHEN {
|
|
|
|
|
2010-05-17 18:34:01 -06:00
|
|
|
unsigned int uType;
|
|
|
|
unsigned int len;
|
2013-02-25 18:32:51 -07:00
|
|
|
u8 * pBuf;
|
2009-06-13 05:38:31 -06:00
|
|
|
PUWLAN_80211HDR pHdr;
|
2013-01-31 12:33:19 -07:00
|
|
|
/* fixed fields */
|
2013-02-25 18:32:52 -07:00
|
|
|
u16 * pwReason;
|
2009-06-13 05:38:31 -06:00
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
/* info elements */
|
2009-06-13 05:38:31 -06:00
|
|
|
|
|
|
|
} WLAN_FR_DEAUTHEN, *PWLAN_FR_DEAUTHEN;
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrEncodeBeacon(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_BEACON pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrDecodeBeacon(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_BEACON pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrEncodeDisassociation(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_DISASSOC pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrDecodeDisassociation(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_DISASSOC pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrEncodeAssocRequest(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_ASSOCREQ pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrDecodeAssocRequest(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_ASSOCREQ pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrEncodeAssocResponse(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_ASSOCRESP pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrDecodeAssocResponse(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_ASSOCRESP pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrEncodeReassocRequest(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_REASSOCREQ pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrDecodeReassocRequest(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_REASSOCREQ pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrEncodeProbeRequest(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_PROBEREQ pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrDecodeProbeRequest(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_PROBEREQ pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrEncodeProbeResponse(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_PROBERESP pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrDecodeProbeResponse(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_PROBERESP pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrEncodeAuthen(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_AUTHEN pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrDecodeAuthen(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_AUTHEN pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrEncodeDeauthen(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_DEAUTHEN pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrDecodeDeauthen(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_DEAUTHEN pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2010-05-01 11:25:00 -06:00
|
|
|
void
|
2009-06-13 05:38:31 -06:00
|
|
|
vMgrEncodeReassocResponse(
|
2010-04-17 09:07:42 -06:00
|
|
|
PWLAN_FR_REASSOCRESP pFrame
|
2009-06-13 05:38:31 -06:00
|
|
|
);
|
|
|
|
|
2013-01-31 12:33:19 -07:00
|
|
|
#endif /* __80211MGR_H__ */
|