亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wlanproto.h

?? Atheros AP Test with Agilent N4010A source code
?? H
?? 第 1 頁 / 共 5 頁
字號:
/*
 *  Copyright ?2000-2002 Atheros Communications, Inc.,  All Rights Reserved.
 *
 * wlanproto.h - Data structures for 802.11 protocol
 *
 */

#ifndef __INCwlanprotoh
#define __INCwlanprotoh

/*
 * This file has the declarations specific to the 802.11 protocol.
 * It has all the fields and frames (that we will use) and also
 * mnemonic defines for constants. Although the MLME/PLME is part
 * of the protocol too, we have kept it in a separate file for
 * convenience.
 */

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include "wlantype.h"

#ifdef WIN32
#pragma pack (push, 1)
#endif

/* PHY related definitions */

/* Predefined PHY types from dot11PHYType field of 802.11 MIB specification */
typedef enum phyType {
    PHY_FHSS = 1,     // Frequency hopping
    PHY_DSSS,         // Direct Sequence Spread Spectrum (original 1, 2 Mbps)
    PHY_IR,           // Infra Red Baseband
    PHY_OFDM,         // OFDM
    PHY_HRDSSS,       // High Rate DSSS, 11b with extensions for 5.5 and 11 Mbps
    PHY_CCK = PHY_HRDSSS, // 11b is commonly called CCK in our code
    PHY_ERP
} PHY_TYPE;

/* MAC related definitions */
/* MAC Address prefix allocated for Atheros devices */
#define Atheros_MACADDR0        0x00
#define Atheros_MACADDR1        0x03
#define Atheros_MACADDR2        0x7f
#define Atheros_MACADDR3        0x00
#define Atheros_MACADDR4        0x00
#define Atheros_MACADDR5        0x00

/* List of Element IDs */
#define ELE_SSID                0       /* SSID */
#define ELE_SUPPORTED_RATES     1       /* Supported Rates */
#define ELE_FH_PARAM_SET        2       /* FH Parameter set */
#define ELE_DS_PARAM_SET        3       /* DS Parameter set */
#define ELE_CF_PARAM_SET        4       /* CF Parameter set */
#define ELE_TIM                 5       /* TIM vector */
#define ELE_IBSS_PARAM_SET      6       /* IBSS parameter set */
#define ELE_COUNTRY_INFO        7       /* Country Information */
#define ELE_CHLG_TEXT           16      /* Challenge text */
         /* 17-31 reserved for challenge txt extension */
#define ELE_CCX_MEAS_REQUEST    38
#define ELE_CCX_MEAS_REPORT     39
#define ELE_NONERP              42      /* NOERP indication, 11g Spec Draft 5 */
#define ELE_EXT_SUPPORTED_RATES 50      /* Extended Supported Rates, 11g D6.1 */
#define ELE_NPLUSI              51      /* N + I demo element */
#define ELE_AIRONET             133     /* CCX: Aironet element */
#define ELE_CCX_AP_ADDR         149     /* CCX: AP IP Address */
#define ELE_TPC                 150     /* Transmit Power Control */
#define ELE_CCKM                156     /* CCKM Request and Response elements */
#define ELE_WPA                 221     /* WiFi Protected Access element */
#define ELE_CCX_RM_CAP          221     /* CCX Radio measurements */
#define ELE_VENDOR_PRIVATE      221     /* Vendor private space; must demux OUI */

/* Max sizes of variable size information elements */
#define ELE_INFO_SIZE           255     /* Max possible size for any element */
#define ELE_SSID_SIZE           32      /* SSID 0 - 32 octets */
#define ELE_RATE_SIZE           12      /* Supported rates 1 - 12 */
#define ELE_RATE_SIZE_11B       8       /* Supported rates 1 - 8 for 11b only */
#define ELE_EXT_RATE_SIZE       253     /* Extended Supported rates */
#define ELE_BITMAP_SIZE         251     /* TIM bitmap */
#define ELE_CHLG_TEXT_SIZE      253     /* Challenge text size */
#define ELE_CF_PARAM_SIZE       6       /* CF param element size */
#define ELE_IBSS_PARAM_SIZE     2       /* IBSS param element size */
#define ELE_UCSE_SIZE           32      /* unicast/pairwise key cipher suite size */
#define ELE_MCSE_SIZE           4       /* multicast/group key cipher suite size */
#define ELE_AUTHSE_SIZE         32      /* Authentication suite size */
#define ELE_COUNTRY_SIZE        3       /* Country string size */
#define ELE_TPC_SIZE            6       /* Transmit Power Control length */

/* The elements are mapped into seq ID which are used to
 * represent them. This is avoid a sparse array when we
 * not using the most of the Element IDs, get rid of this
 * and the mapping table when the elementIDs move away from 
 * being sparse.
 */
typedef enum {
    MAP_ELE_SSID,
    MAP_ELE_SUPPORTED_RATES,
    MAP_ELE_FH_PARAM_SET,
    MAP_ELE_DS_PARAM_SET,
    MAP_ELE_CF_PARAM_SET,
    MAP_ELE_TIM,
    MAP_ELE_IBSS_PARAM_SET,       
    MAP_ELE_COUNTRY_INFO,
    MAP_ELE_CHLG_TEXT,
    MAP_ELE_NONERP,
    MAP_ELE_EXT_SUPPORTED_RATES,
    MAP_ELE_CKIP_CSN,
    MAP_ELE_TPC,
    MAP_ELE_CCX_APADDR,
    MAP_ELE_ESCAPE
} WLAN_ELEM_ID_MAP;

/* Frame control field of the MAC header */

/* values for the protocol version field */
#define PROTOCOL_VER_0          0       /* Standard specifies version 0 */

/* Values for frame type */
#define FRAME_MGT               0       /* Managemnt frame */
#define FRAME_CTRL              1       /* Control frame */
#define FRAME_DATA              2       /* Data frame */
#define FRAME_RESERVED          3       /* 3 is reserved value */

/* Values for frame subtype */
#define SUBT_ASSOC_REQ          0       /* Association request */
#define SUBT_ASSOC_RESP         1       /* Association response */
#define SUBT_REASSOC_REQ        2       /* Reassociation request */
#define SUBT_REASSOC_RESP       3       /* Reassociation response */
#define SUBT_PROBE_REQ          4       /* Probe request */
#define SUBT_PROBE_RESP         5       /* Probe response */
#define SUBT_BEACON             8       /* Beacon frame */
#define SUBT_ATIM               9       /* ATIM message */
#define SUBT_DISASSOC           10      /* Disassociation */
#define SUBT_AUTH               11      /* Authentication */
#define SUBT_DEAUTH             12      /* Deauthentication */
#define SUBT_ACTION             13      /* Action */

#define SUBT_PSPOLL             10      /* Power save poll */
#define SUBT_RTS                11      /* Request to Send */
#define SUBT_CTS                12      /* Clear to Send */
#define SUBT_ACK                13      /* ACK frame */
#define SUBT_CFEND              14      /* Contention-free end */
#define SUBT_CFENDACK           15      /* CF-End + CF-ACK */

#define SUBT_DATA               0       /* Just data */
#define SUBT_DATA_CFACK         1       /* Data + CF-Ack */
#define SUBT_DATA_CFPOLL        2       /* Data + CF-Poll */
#define SUBT_DATA_CFACK_CFPOLL  3       /* Data + CF-Ack + CF-Poll */
#define SUBT_NODATA             4       /* Null function, no data */
#define SUBT_NODATA_CFACK       5       /* No data + CF-Ack */
#define SUBT_NODATA_CFPOLL      6       /* No data + CF-Poll */
#define SUBT_NODATA_CFACK_CFPOLL 7      /* No data + CF-Ack + */
                                        /* CF-Poll */
#define SUBT_QOS                8       /* The QoS dimension */
#define SUBT_QOS_NULL           12      /* SUBT_NODATA | SUBT_QOS */

/* MAC Address definitions */
#define WLAN_MAC_ADDR_SIZE      6
union wlanMACAddr {
    A_UINT8  octets[WLAN_MAC_ADDR_SIZE];
    A_UINT16 words[WLAN_MAC_ADDR_SIZE/2];
    struct {
        A_UINT32 word;
        A_UINT16 half;
    } __ATTRIB_PACK st;
};

/*
 * Define the frame size related constants for ethernet and 802.11 frames
 */
#define MAX_ETHER_FRAME_SIZE    1514    /* max length for Ethernet/802.3 frame */
#define ETHER_HDR_SIZE          14      /* Ethernet/802.3  header length */
#define MAX_ETHER_BODY_SIZE     1500    /* max body length for Ethernet/802.3 */
#define ETHER_TYPE_SIZE         2       /* size of type or length for Ethernet/802.3 */
#define MAX_WLAN_FRAME_SIZE     2342    /* max length for 802.11 frame */
#define WLAN_HDR_SIZE           24      /* length for 802.11 frame header without address 4 */
#define WLAN_HDR4_SIZE          32      /* length for 802.11 frame header with adress 4 */
#define MAX_WLAN_BODY_SIZE      2312    /* max length for 802.11 frame body */
#define WLAN_CTRL_FRAME_SIZE    (sizeof(WLAN_FRAME_ACK) + FCS_FIELD_SIZE)

#define FCS_FIELD_SIZE          4       /* size of FCS */
#define WEP_IV_FIELD_SIZE       4       /* wep IV field size */
#define AES_IV_FIELD_SIZE       4       /* aes IV field size */
#define EXT_IV_FIELD_SIZE       4       /* ext IV field size */
#define EXT_IV_BIT              (1 << 29)      /* ext IV bit */
#define WEP_ICV_FIELD_SIZE      4       /* wep ICV field size */
#define AES_ICV_FIELD_SIZE      8       /* AES ICV field size */
#define WEP_FIELDS_SIZE (WEP_IV_FIELD_SIZE + WEP_ICV_FIELD_SIZE) /* total size of wep fields needed */

#define MAX_IV_FIELD_SIZE       (WEP_IV_FIELD_SIZE + EXT_IV_FIELD_SIZE)
#define MAX_ICV_FIELD_SIZE      AES_ICV_FIELD_SIZE

#define AES_KEY_SIZE_BYTES      16              /* 128 bits */
#define TKIP_KEY_SIZE_BYTES     32              /* 256 bits */

#define CKIP_MIC_FIELD_SIZE     8 /* includes both MIC and SEQ fields */
#define TKIP_MIC_FIELD_SIZE     8 /* added at end of frame */

/* EAPOL/802.1x frames are identified by their EAPOL typeOrLen field in SNAP header. */
#define EAPOL_TYPEORLEN         0x888e // deprecate this name
#define ETHERTYPE_EAPOL         EAPOL_TYPEORLEN
#define DDP_SNAP                0x0000 // only valid with Aironet SNAP

/*
 * A conservative estimate of the max encap header size
 * needed here would be 32 bytes for WLAN - assume four
 * addr bridge mode with QoS (or just word aligned); max
 * 8 bytes of IV, and another 10 bytes of overhead for
 * CKIP encapsulation - all rounded up.
 */
#define MAX_ENCAP_HDRLEN 52

typedef struct EapolSNAPhdr_s {
    A_UINT8     snapHeader[8];
} EAPOL_SNAP_HDR;

/* MAC header sizes in octets for various types of frames */
#define MAC_HDR_MGT_SIZE        24      /* All management frames */
#define MAC_HDR_DATA3_SIZE      24      /* Data frames with 3 addr */
#define MAC_HDR_DATA4_SIZE      30      /* Data frames with 4 addr */
                                        /* when ToDS and FromDS are set */
#define MAC_HDR_CTRL1_SIZE      10      /* Control frames with 1 addr */
                                        /* CTS, ACK types */
#define MAC_HDR_CTRL2_SIZE      16      /* Control frames with 2 addr */
                                        /* all other types */

/* Power management modes */
#define PS_MODE_ACTIVE          0       /* Station is active */
#define PS_MODE_POWER_SAVE      1       /* Station going in power save mode */

/* Type of wireless lan service - access point or station */
typedef enum {
    WLAN_STA_SERVICE = 0,
    WLAN_AP_SERVICE  = 1
} WLAN_SERVICE;

#define WLAN_OK                 A_OK

#ifdef BIG_ENDIAN

typedef struct wlanFrameControl {
    A_UINT8     fSubtype:4,             /* frame subtype */
                fType:2,                /* frame type - contro, mgt, data */
                protoVer:2;             /* protocol version */
    A_UINT8     order:1,                /* True for StrictOrdered service class */
                wep:1,                  /* True for WEP encrypted body */
                moreData:1,             /* True if more DUs are buffered */
                pwrMgt:1,               /* True if STA going into PS mode */
                retry:1,                /* True if frame is being retransmitted */
                moreFrag:1,             /* True if more fragments still to come */
                FromDS:1,               /* FromDS bit, frame coming from DS */
                ToDS:1;                 /* ToDS bit, frame going to DS */
} __ATTRIB_PACK FRAME_CONTROL;

typedef union wlanSeqCtrl {
    struct {
        A_UINT8     seqNumLo:4,         /* Lower bits of the sequence number 0-4095 */
                    fragNum:4;          /* Fragment number */
        A_UINT8     seqNumHi;           /* High bits of the sequence number 0-4095 */
    }           sc;
    A_UINT16    data;
} __ATTRIB_PACK SEQ_CONTROL;

#define WLAN_GET_SEQNUM(_sc)                                            \
    (((A_UINT16)((_sc).sc.seqNumHi) << 4) | (A_UINT16)((_sc).sc.seqNumLo))
#define WLAN_SET_SEQNUM(_sc, _num)   {                                \
    (_sc).sc.seqNumHi = (A_UINT8)((_num) >> 4);                         \
    (_sc).sc.seqNumLo = (A_UINT8)((_num) & 0x0f);                       \
} 

#else /* Little_Endian */

typedef struct wlanFrameControl {
    A_UINT8     protoVer:2,             /* protocol version */
                fType:2,                /* frame type - contro, mgt, data */
                fSubtype:4;             /* frame subtype */
    A_UINT8     ToDS:1,                 /* ToDS bit, frame going to DS */
                FromDS:1,               /* FromDS bit, frame coming from DS */
                moreFrag:1,             /* True if more fragments still to come */
                retry:1,                /* True if frame is being retransmitted */
                pwrMgt:1,               /* True if STA going into PS mode */
                moreData:1,             /* True if more DUs are buffered */
                wep:1,                  /* True for WEP encrypted body */
                order:1;                /* True for StrictOrdered service class */
} __ATTRIB_PACK FRAME_CONTROL;

typedef union wlanSeqCtrl {
    struct {
        A_UINT16    fragNum:4,          /* Fragment number */
                    seqNum:12;          /* Sequence number 0-4095 */
    }           sc;
    A_UINT16    data;
} __ATTRIB_PACK SEQ_CONTROL;

#define WLAN_GET_SEQNUM(_sc)        ((_sc).sc.seqNum)
#define WLAN_SET_SEQNUM(_sc, _num)   {            \
    (_sc).sc.seqNum = (_num);                       \
} 

#endif /* Endianness */

#define WLAN_GET_FRAGNUM(_sc)       ((_sc).sc.fragNum)
#define WLAN_SET_FRAGNUM(_sc, _num) {            \
    (_sc).sc.fragNum = (_num);                      \
} 

/*
 * Duration field is used in two different ways.
 * When bit 15 is 0, bits 0:14 are used to update NAV.
 * When bit 15 is 1 and bit 14 is 1, bits 0:13 are Association ID.
 * Bit 15 and 14 are 1 during CFP
 */
typedef A_UINT16                            DURATION;
#define WLAN_GET_DURATION(_dur)             le2cpu16(_dur)
#define WLAN_SET_DURATION_NAV(_dur, _nav)   do {    \
    A_UINT16 val = _nav;                            \

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月激情综合网| 国产三级精品三级| 日韩电影免费一区| 日韩一区二区三区观看| 日韩福利电影在线观看| 日韩一区二区三区四区 | 日韩亚洲欧美成人一区| 久久99久久精品| 精品国产亚洲一区二区三区在线观看 | 国产精品少妇自拍| 99视频精品免费视频| 亚洲一区二区三区在线播放| 欧美一区二区三区小说| 国内外精品视频| 亚洲欧美一区二区视频| 欧美在线看片a免费观看| 日韩激情视频在线观看| 久久夜色精品国产欧美乱极品| 丁香另类激情小说| 亚洲一区欧美一区| 欧美mv日韩mv国产网站app| 风间由美一区二区三区在线观看| 国产精品福利一区二区三区| 欧美视频中文字幕| 经典三级一区二区| 一区二区三区四区中文字幕| 欧美大片日本大片免费观看| 95精品视频在线| 美美哒免费高清在线观看视频一区二区| 国产性色一区二区| 精品视频免费看| 国产在线一区二区| 日本丰满少妇一区二区三区| 日韩不卡手机在线v区| 中文字幕不卡在线| 91精品国产综合久久小美女| 波多野结衣在线aⅴ中文字幕不卡| 亚洲综合男人的天堂| 精品福利在线导航| 欧美性色aⅴ视频一区日韩精品| 激情丁香综合五月| 五月激情六月综合| 亚洲欧洲国产专区| 欧美一区2区视频在线观看| 99久久国产综合精品色伊| 日韩成人免费在线| 亚洲精品国久久99热| 国产日韩欧美高清| 日韩欧美成人一区二区| 欧美亚洲国产bt| 99精品国产91久久久久久| 极品美女销魂一区二区三区免费 | 一区二区三区四区亚洲| 久久久国产精品麻豆 | 国产亚洲欧美中文| 91精品国产麻豆国产自产在线| 99麻豆久久久国产精品免费 | 国产在线麻豆精品观看| 五月天中文字幕一区二区| 综合色中文字幕| 国产精品五月天| 久久久久久日产精品| 日韩欧美中文一区| 91精品国产aⅴ一区二区| 欧美性受极品xxxx喷水| 91美女片黄在线观看91美女| www.一区二区| 粉嫩av一区二区三区在线播放| 精品一区二区三区免费毛片爱 | 国产三级精品三级在线专区| 欧美变态tickle挠乳网站| 91麻豆精品国产91久久久 | 精品一区二区三区免费视频| 蜜臀av国产精品久久久久| 水野朝阳av一区二区三区| 偷窥国产亚洲免费视频| 视频一区二区中文字幕| 日韩av一区二区在线影视| 青青青爽久久午夜综合久久午夜 | 亚洲日本电影在线| 亚洲人成网站色在线观看| 综合av第一页| 亚洲午夜视频在线| 午夜欧美视频在线观看| 日韩精品1区2区3区| 热久久免费视频| 激情都市一区二区| 成人性生交大片免费看中文网站| 国产91精品欧美| 99久久伊人精品| 欧洲视频一区二区| 欧美日韩国产免费一区二区| 日韩亚洲欧美中文三级| 久久久久久黄色| 亚洲人成7777| 午夜欧美视频在线观看| 久99久精品视频免费观看| 国产乱码精品一品二品| www.av亚洲| 欧美日韩免费不卡视频一区二区三区| 欧美精品久久99久久在免费线| 欧美成人精品高清在线播放 | 亚洲欧美日韩国产另类专区 | 日本麻豆一区二区三区视频| 国产在线精品国自产拍免费| 丁香桃色午夜亚洲一区二区三区| 91视频免费看| 亚洲成人黄色影院| 日韩国产精品91| 国产黑丝在线一区二区三区| 日本道精品一区二区三区| 欧美一区二区三区婷婷月色| 国产亚洲一区二区三区四区 | 蜜桃视频在线一区| 国产**成人网毛片九色| 在线观看免费视频综合| 欧美大肚乱孕交hd孕妇| 综合久久国产九一剧情麻豆| 美脚の诱脚舐め脚责91| 懂色av一区二区三区免费看| 欧美日韩国产天堂| 国产精品嫩草影院av蜜臀| 亚洲sss视频在线视频| 国产精品白丝av| 欧美日韩成人综合天天影院| 亚洲国产经典视频| 视频一区二区不卡| 91在线观看成人| 精品区一区二区| 亚洲国产另类精品专区| 成人性生交大合| 欧美一二三在线| 亚洲一区国产视频| 成人免费高清在线| 欧美精品日韩综合在线| 中文字幕一区二区5566日韩| 免费欧美日韩国产三级电影| 色婷婷综合久久久| 国产欧美一区二区精品性色超碰| 日本不卡不码高清免费观看| 91丨porny丨国产| 国产香蕉久久精品综合网| 日本视频中文字幕一区二区三区| 91片在线免费观看| 国产精品天美传媒| 国产综合色产在线精品| 欧美一区二区三区的| 亚洲小少妇裸体bbw| 91免费版在线| 成人欧美一区二区三区| 国产盗摄视频一区二区三区| 精品毛片乱码1区2区3区| 亚洲.国产.中文慕字在线| 日本乱人伦一区| 亚洲三级在线观看| 成人一区二区在线观看| 久久久久久久免费视频了| 免费看精品久久片| 欧美精品 日韩| 亚洲a一区二区| 欧美精品1区2区| 日韩不卡一区二区三区| 欧美一二三区在线| 蜜桃视频在线一区| 欧美成人一区二区| 精品午夜久久福利影院| 26uuu亚洲婷婷狠狠天堂| 精品在线播放免费| 精品国产乱码久久久久久老虎| 蜜臀va亚洲va欧美va天堂| 欧美日韩国产一区| 日韩中文字幕亚洲一区二区va在线| 欧美亚洲一区二区三区四区| 亚洲男人的天堂在线观看| 91免费看视频| 亚洲二区在线视频| 欧美精品久久99| 九色|91porny| 欧美国产欧美综合| 成人18视频日本| 亚洲男女毛片无遮挡| 欧美午夜免费电影| 日韩av在线免费观看不卡| 欧美大肚乱孕交hd孕妇| 国产老肥熟一区二区三区| 国产精品国产自产拍高清av王其| 91美女在线看| 午夜精品久久久久久久99樱桃| 欧美一级精品大片| 国产精品18久久久久久久网站| 中文字幕国产一区二区| 色就色 综合激情| 亚洲成av人片一区二区三区| 日韩欧美激情一区| 国产福利91精品一区| 亚洲色图在线看| 在线综合+亚洲+欧美中文字幕| 韩国女主播一区| 亚洲女同ⅹxx女同tv| 精品少妇一区二区三区视频免付费 |