📄 rtmp_def.h
字号:
#define MLME_UNSPECIFY_FAIL 1
#define MLME_CANNOT_SUPPORT_CAP 10
#define MLME_REASSOC_DENY_ASSOC_EXIST 11
#define MLME_ASSOC_DENY_OUT_SCOPE 12
#define MLME_ALG_NOT_SUPPORT 13
#define MLME_SEQ_NR_OUT_OF_SEQUENCE 14
#define MLME_REJ_CHALLENGE_FAILURE 15
#define MLME_REJ_TIMEOUT 16
#define MLME_ASSOC_REJ_UNABLE_HANDLE_STA 17
#define MLME_ASSOC_REJ_DATA_RATE 18
#define MLME_ASSOC_REJ_NO_EXT_RATE 22
#define MLME_ASSOC_REJ_NO_EXT_RATE_PBCC 23
#define MLME_ASSOC_REJ_NO_CCK_OFDM 24
#define MLME_INVALID_FORMAT 0x51
#define MLME_FAIL_NO_RESOURCE 0x52
#define MLME_STATE_MACHINE_REJECT 0x53
#define MLME_MAC_TABLE_FAIL 0x54
//IE code
#define IE_SSID 0
#define IE_SUPP_RATES 1
#define IE_FH_PARM 2
#define IE_DS_PARM 3
#define IE_CF_PARM 4
#define IE_TIM 5
#define IE_IBSS_PARM 6
#define IE_COUNTRY 7 // 802.11d
#define IE_802_11D_REQUEST 10 // 802.11d
#define IE_CHALLENGE_TEXT 16
#define IE_POWER_CONSTRAINT 32 // 802.11h d3.3
#define IE_POWER_CAPABILITY 33 // 802.11h d3.3
#define IE_TPC_REQUEST 34 // 802.11h d3.3
#define IE_TPC_REPORT 35 // 802.11h d3.3
#define IE_SUPP_CHANNELS 36 // 802.11h d3.3
#define IE_CHANNEL_SWITCH_ANNOUNCEMENT 37 // 802.11h d3.3
#define IE_MEASUREMENT_REQUEST 38 // 802.11h d3.3
#define IE_MEASUREMENT_REPORT 39 // 802.11h d3.3
#define IE_QUIET 40 // 802.11h d3.3
#define IE_IBSS_DFS 41 // 802.11h d3.3
#define IE_ERP 42 // 802.11g
#define IE_EXT_SUPP_RATES 50 // 802.11g
#define IE_WPA 221 // WPA
#define IE_RSN 48 // 802.11i d3.0
#define CNTL_FUNC_SIZE 1
// Message type for the MLME state machine
// Messages for Associate state machine
#define ASSOC_MACHINE_BASE 0
#define MT2_MLME_ASSOC_REQ 0
#define MT2_MLME_REASSOC_REQ 1
#define MT2_MLME_DISASSOC_REQ 2
#define MT2_PEER_DISASSOC_REQ 3
#define MT2_PEER_ASSOC_REQ 4
#define MT2_PEER_ASSOC_RSP 5
#define MT2_PEER_REASSOC_REQ 6
#define MT2_PEER_REASSOC_RSP 7
//#define MT2_CLS3ERR 8
#define MT2_DISASSOC_TIMEOUT 8
#define MT2_ASSOC_TIMEOUT 9
#define MT2_REASSOC_TIMEOUT 10
#define MAX_ASSOC_MSG 11
// Messages for Authentication state machine
#define AUTH_MACHINE_BASE 11
#define MT2_MLME_AUTH_REQ 11
//#define MT2_MLME_DEAUTH_REQ 12
//#define MT2_CLS2ERR 13
#define MT2_PEER_AUTH_EVEN 14
#define MT2_AUTH_TIMEOUT 15
#define MAX_AUTH_MSG 5
// Messages for authentication response state machine
#define AUTH_RSP_MACHINE_BASE 16
#define MT2_AUTH_CHALLENGE_TIMEOUT 16
#define MT2_PEER_AUTH_ODD 17
#define MT2_PEER_DEAUTH 18
#define MAX_AUTH_RSP_MSG 3
// Messages for the sync state machine
#define SYNC_MACHINE_BASE 19
#define MT2_MLME_SCAN_REQ 19
#define MT2_MLME_JOIN_REQ 20
#define MT2_MLME_START_REQ 21
#define MT2_PEER_BEACON 22
#define MT2_PEER_PROBE_RSP 23
#define MT2_PEER_ATIM 24
#define MT2_SCAN_TIMEOUT 25
#define MT2_BEACON_TIMEOUT 26
#define MT2_ATIM_TIMEOUT 27
#define MT2_PEER_PROBE_REQ 28
#define MAX_SYNC_MSG 10
// MIB access
#define MT2_GET_REQ 31
#define MT2_SET_REQ 32
#define MT2_RESET_REQ 33
// Confirm message
#define MT2_ASSOC_CONF 34
#define MT2_AUTH_CONF 35
#define MT2_DEAUTH_CONF 36
#define MT2_DISASSOC_CONF 37
#define MT2_REASSOC_CONF 38
#define MT2_PWR_MGMT_CONF 39
#define MT2_JOIN_CONF 40
#define MT2_SCAN_CONF 41
#define MT2_START_CONF 42
#define MT2_GET_CONF 43
#define MT2_SET_CONF 44
#define MT2_RESET_CONF 45
// Indication message
#define MT2_DEAUTH_IND 46
#define MT2_ASSOC_IND 47
#define MT2_DISASSOC_IND 48
#define MT2_REASSOC_IND 49
#define MT2_AUTH_IND 50
#define MT2_SCAN_END_CONF 51 // For scan end
#define MT2_MLME_ROAMING_REQ 52
/* #define TXSTATUS_SUCCESS 0 */
/* #define TXSTATUS_FAIL_RETRY_LIMIT 1 */
/* #define TXSTATUS_EXCESSIVE_LENGTH 2 */
/* #define TXSTATUS_NON_NULL_SOURCE_ROUTE 3 */
/* #define TXSTATUS_UNSUPPORTED_PRIORITY 4 */
/* #define TXSTATUS_UNSUPPORTED_SERVICE 5 */
/* #define TXSTATUS_UNAVAILABLE_PRIORITY 6 // CF with no PC available; down-grade to contention */
/* #define TXSTATUS_UNAVAILABLE_SERVICE 7 // strictly-ordered but STA isn't active */
/* #define TXSTATUS_FAIL_LIFE_TIME 8 */
/* #define TXSTATUS_FAIL_NOBSS 9 */
/* #define TXSTATUS_FAIL_NULL_KEY 10 */
// value domain of MacHdr.tyte, which is b3..b2 of the 1st-byte of MAC header
#define BTYPE_MGMT 0 // 00
#define BTYPE_CNTL 1 // 01
#define BTYPE_DATA 2 // 10
// value domain of MacHdr.subtype, which is b7..4 of the 1st-byte of MAC header
// Management frame
#define SUBTYPE_ASSOC_REQ 0
#define SUBTYPE_ASSOC_RSP 1
#define SUBTYPE_REASSOC_REQ 2
#define SUBTYPE_REASSOC_RSP 3
#define SUBTYPE_PROBE_REQ 4
#define SUBTYPE_PROBE_RSP 5
#define SUBTYPE_BEACON 8
#define SUBTYPE_ATIM 9
#define SUBTYPE_DISASSOC 10
#define SUBTYPE_AUTH 11
#define SUBTYPE_DEAUTH 12
#define SUBTYPE_ACTION 13
// Control Frame
#define SUBTYPE_BLOCK_ACK_REQ 8
#define SUBTYPE_BLOCK_ACK 9
#define SUBTYPE_PS_POLL 10
#define SUBTYPE_RTS 11 // 1011
#define SUBTYPE_CTS 12 // 1100
#define SUBTYPE_ACK 13 // 1101
#define SUBTYPE_CFEND 14
#define SUBTYPE_CFEND_CFACK 15
// Data Frame
#define SUBTYPE_DATA 0
#define SUBTYPE_DATA_CFACK 1
#define SUBTYPE_DATA_CFPOLL 2
#define SUBTYPE_DATA_CFACK_CFPOLL 3
#define SUBTYPE_NULL_FUNC 4
#define SUBTYPE_CFACK 5 // 0101
#define SUBTYPE_CFPOLL 6
#define SUBTYPE_CFACK_CFPOLL 7
#define SUBTYPE_QDATA 8
#define SUBTYPE_QDATA_CFACK 9
#define SUBTYPE_QDATA_CFPOLL 10
#define SUBTYPE_QDATA_CFACK_CFPOLL 11
#define SUBTYPE_QOS_NULL 12
#define SUBTYPE_QOS_CFACK 13
#define SUBTYPE_QOS_CFPOLL 14
#define SUBTYPE_QOS_CFACK_CFPOLL 15
#define ASSOC_STATE_MACHINE 1
#define AUTH_STATE_MACHINE 2
#define AUTH_RSP_STATE_MACHINE 3
#define SYNC_STATE_MACHINE 4
#define MLME_CNTL_STATE_MACHINE 5
#define WPA_PSK_STATE_MACHINE 6 //red, add for WPA-PSK
//
// rtmp_data.c use these definition
//
#define LENGTH_802_11 24
#define LENGTH_802_11_AND_H 30
#define LENGTH_802_11_CRC_H 34
#define LENGTH_802_11_CRC 28
#define LENGTH_802_3 14
#define LENGTH_802_3_TYPE 2
#define LENGTH_802_1_H 8
#define LENGTH_EAPOL_H 4
#define LENGTH_CRC 4
#define MAX_SEQ_NUMBER 0x0fff
#define SUCCESS_WITHOUT_RETRY 0
#define SUCCESS_WITH_RETRY 1
#define FAIL_RETRY_LIMIT 2
#define FAIL_INVALID 3
#define FAIL_OTHER 4
#define RATE_1 0
#define RATE_2 1
#define RATE_5_5 2
#define RATE_11 3
#define RATE_6 4 // OFDM
#define RATE_9 5 // OFDM
#define RATE_12 6 // OFDM
#define RATE_18 7 // OFDM
#define RATE_24 8 // OFDM
#define RATE_36 9 // OFDM
#define RATE_48 10 // OFDM
#define RATE_54 11 // OFDM
#define RATE_72 12
#define RATE_100 13
#define RATE_FIRST_OFDM_RATE RATE_6
#define RATE_AUTO_SWITCH 255 // for PortCfg.FixedTxRate only
#define IFS_BACKOFF 0
#define IFS_SIFS 1
#define IFS_NEW_BACKOFF 2
#define IFS_NONE 3
#define LONG_RETRY 1
#define SHORT_RETRY 0
// Country Region definition
#define REGION_MIN 0
#define REGION_FCC 0 // 1-11
#define REGION_IC 1 // 1-11
#define REGION_ETSI 2 // 1-13
#define REGION_SPAIN 3 // 10-11
#define REGION_FRANCE 4 // 10-13
#define REGION_MKK 5 // 14
#define REGION_MKK1 6 // 1-14
#define REGION_ISRAEL 7 // 3-9
#define REGION_MAX REGION_ISRAEL
#define CIPHER_NONE 0
#define CIPHER_WEP64 1
#define CIPHER_WEP128 2
#define CIPHER_TKIP 3
#define CIPHER_AES 4
// Stall execution time for ndisdpracquires[inlock in miniportReset function
#define WAIT_TIME_FOR_SPINLOCK 10 // usec
// value domain for pAdapter->PortCfg.RfType
#define RFIC_2522 0
#define RFIC_2523 1
#define RFIC_2524 2
#define RFIC_2525 3
#if 0//steven:modified by brand,blue
#define RFIC_2525E 4
#else
#define RFIC_2525E 5
#endif
#define RFIC_5222 16
// This chip is same as RT2526, it's for 11b only purpose
#define RFIC_2426 6
// value domain for pAdapter->PortCfg.LedMode and E2PROM
#define LED_MODE_DEFAULT 0
#define LED_MODE_TXRX_ACTIVITY 1
#define LED_MODE_SINGLE 2 // Single LED mode, driver lid the LED as soon as driver up & enable tx activity right away
#define LED_MODE_ASUS 3 // Two LED modes, bit 16 acts as LED_MODE_SINGLE, bit 17 acts as RADIO status.
#define LED_MODE_ALPHA 4 // Two LED modes, bit 16 acts as LED_MODE_SINGLE, bit 17 acts as RADIO status.
// RC4 init value, used fro WEP & TKIP
#define PPPINITFCS32 0xffffffff /* Initial FCS value */
// 802.1X controlled port definition
#define WPA_802_1X_PORT_SECURED 1
#define WPA_802_1X_PORT_NOT_SECURED 2
#define PAIRWISE_KEY 1
#define GROUP_KEY 2
#define MAX_PACKETS_IN_QUEUE 100
#endif // __RTMP_DEF_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -