📄 rtmp_def.h
字号:
#define APCLI_MT2_PEER_PROBE_RSP 1#define APCLI_MT2_PROBE_TIMEOUT 2#define APCLI_MAX_SYNC_MSG 3#define APCLI_SYNC_FUNC_SIZE (APCLI_MAX_SYNC_STATE * APCLI_MAX_SYNC_MSG)//ApCli ctrl state machine#define APCLI_CTRL_DISCONNECTED 0 // merge NO_BSS,IBSS_IDLE,IBSS_ACTIVE and BSS in to 1 state#define APCLI_CTRL_PROBE 1#define APCLI_CTRL_AUTH 2#define APCLI_CTRL_AUTH_2 3#define APCLI_CTRL_ASSOC 4#define APCLI_CTRL_DEASSOC 5#define APCLI_CTRL_CONNECTED 6#define APCLI_MAX_CTRL_STATE 7#define APCLI_CTRL_MACHINE_BASE 0#define APCLI_CTRL_JOIN_REQ 0#define APCLI_CTRL_PROBE_RSP 1#define APCLI_CTRL_AUTH_RSP 2#define APCLI_CTRL_DISCONNECT_REQ 3#define APCLI_CTRL_PEER_DISCONNECT_REQ 4#define APCLI_CTRL_ASSOC_RSP 5#define APCLI_CTRL_DEASSOC_RSP 6#define APCLI_CTRL_JOIN_REQ_TIMEOUT 7#define APCLI_CTRL_AUTH_REQ_TIMEOUT 8#define APCLI_CTRL_ASSOC_REQ_TIMEOUT 9#define APCLI_MAX_CTRL_MSG 10#define APCLI_CTRL_FUNC_SIZE (APCLI_MAX_CTRL_STATE * APCLI_MAX_CTRL_MSG)#endif // APCLI_SUPPORT //// =============================================================================// value domain of 802.11 header FC.Tyte, which is b3..b2 of the 1st-byte of MAC header#define BTYPE_MGMT 0#define BTYPE_CNTL 1#define BTYPE_DATA 2// value domain of 802.11 MGMT frame's FC.subtype, which is b7..4 of the 1st-byte of MAC header#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#define SUBTYPE_ACTION_NO_ACK 14// value domain of 802.11 CNTL frame's FC.subtype, which is b7..4 of the 1st-byte of MAC header#define SUBTYPE_WRAPPER 7#define SUBTYPE_BLOCK_ACK_REQ 8#define SUBTYPE_BLOCK_ACK 9#define SUBTYPE_PS_POLL 10#define SUBTYPE_RTS 11#define SUBTYPE_CTS 12#define SUBTYPE_ACK 13#define SUBTYPE_CFEND 14#define SUBTYPE_CFEND_CFACK 15// value domain of 802.11 DATA frame's FC.subtype, which is b7..4 of the 1st-byte of MAC header#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#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// ACK policy of QOS Control field bit 6:5#define NORMAL_ACK 0x00 // b6:5 = 00#define NO_ACK 0x20 // b6:5 = 01#define NO_EXPLICIT_ACK 0x40 // b6:5 = 10#define BLOCK_ACK 0x60 // b6:5 = 11//// 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_11_WITH_ADDR4 30#define LENGTH_802_3 14#define LENGTH_802_3_TYPE 2#define LENGTH_802_1_H 8#define LENGTH_EAPOL_H 4#define LENGTH_WMMQOS_H 2#define LENGTH_CRC 4#define MAX_SEQ_NUMBER 0x0fff#define LENGTH_802_3_NO_TYPE 12#define LENGTH_802_1Q 4 /* VLAN related */// STA_CSR4.field.TxResult#define TX_RESULT_SUCCESS 0#define TX_RESULT_ZERO_LENGTH 1#define TX_RESULT_UNDER_RUN 2#define TX_RESULT_OHY_ERROR 4#define TX_RESULT_RETRY_FAIL 6// All PHY rate summary in TXD// Preamble MODE in TxD#define MODE_CCK 0#define MODE_OFDM 1#ifdef DOT11_N_SUPPORT#define MODE_HTMIX 2#define MODE_HTGREENFIELD 3#endif // DOT11_N_SUPPORT //// MCS for CCK. BW.SGI.STBC are reserved#define MCS_LONGP_RATE_1 0 // long preamble CCK 1Mbps#define MCS_LONGP_RATE_2 1 // long preamble CCK 1Mbps#define MCS_LONGP_RATE_5_5 2#define MCS_LONGP_RATE_11 3#define MCS_SHORTP_RATE_1 4 // long preamble CCK 1Mbps. short is forbidden in 1Mbps#define MCS_SHORTP_RATE_2 5 // short preamble CCK 2Mbps#define MCS_SHORTP_RATE_5_5 6#define MCS_SHORTP_RATE_11 7// To send duplicate legacy OFDM. set BW=BW_40. SGI.STBC are reserved#define MCS_RATE_6 0 // legacy OFDM#define MCS_RATE_9 1 // OFDM#define MCS_RATE_12 2 // OFDM#define MCS_RATE_18 3 // OFDM#define MCS_RATE_24 4 // OFDM#define MCS_RATE_36 5 // OFDM#define MCS_RATE_48 6 // OFDM#define MCS_RATE_54 7 // OFDM // HT#define MCS_0 0 // 1S#define MCS_1 1#define MCS_2 2#define MCS_3 3#define MCS_4 4#define MCS_5 5#define MCS_6 6#define MCS_7 7#define MCS_8 8 // 2S#define MCS_9 9#define MCS_10 10#define MCS_11 11#define MCS_12 12#define MCS_13 13#define MCS_14 14#define MCS_15 15#define MCS_16 16 // 3*3#define MCS_17 17#define MCS_18 18#define MCS_19 19#define MCS_20 20#define MCS_21 21#define MCS_22 22#define MCS_23 23#define MCS_32 32#define MCS_AUTO 33#ifdef DOT11_N_SUPPORT// OID_HTPHYMODE// MODE#define HTMODE_MM 0 #define HTMODE_GF 1#endif // DOT11_N_SUPPORT //// Fixed Tx MODE - HT, CCK or OFDM#define FIXED_TXMODE_HT 0#define FIXED_TXMODE_CCK 1#define FIXED_TXMODE_OFDM 2// BW#define BW_20 BAND_WIDTH_20#define BW_40 BAND_WIDTH_40#define BW_BOTH BAND_WIDTH_BOTH#define BW_10 BAND_WIDTH_10 // 802.11j has 10MHz. This definition is for internal usage. doesn't fill in the IE or other field.#ifdef DOT11_N_SUPPORT// SHORTGI#define GI_400 GAP_INTERVAL_400 // only support in HT mode#define GI_BOTH GAP_INTERVAL_BOTH#endif // DOT11_N_SUPPORT //#define GI_800 GAP_INTERVAL_800 // STBC#define STBC_NONE 0#ifdef DOT11_N_SUPPORT#define STBC_USE 1 // limited use in rt2860b phy#define RXSTBC_ONE 1 // rx support of one spatial stream#define RXSTBC_TWO 2 // rx support of 1 and 2 spatial stream#define RXSTBC_THR 3 // rx support of 1~3 spatial stream// MCS FEEDBACK#define MCSFBK_NONE 0 // not support mcs feedback /#define MCSFBK_RSV 1 // reserved#define MCSFBK_UNSOLICIT 2 // only support unsolict mcs feedback#define MCSFBK_MRQ 3 // response to both MRQ and unsolict mcs feedback// MIMO power safe #define MMPS_STATIC 0#define MMPS_DYNAMIC 1#define MMPS_RSV 2#define MMPS_ENABLE 3// A-MSDU size#define AMSDU_0 0#define AMSDU_1 1#endif // DOT11_N_SUPPORT //// MCS use 7 bits #define TXRATEMIMO 0x80#define TXRATEMCS 0x7F#define TXRATEOFDM 0x7F#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_FIRST_OFDM_RATE RATE_6#define RATE_LAST_OFDM_RATE RATE_54#define RATE_6_5 12 // HT mix#define RATE_13 13 // HT mix#define RATE_19_5 14 // HT mix#define RATE_26 15 // HT mix#define RATE_39 16 // HT mix#define RATE_52 17 // HT mix#define RATE_58_5 18 // HT mix#define RATE_65 19 // HT mix#define RATE_78 20 // HT mix#define RATE_104 21 // HT mix#define RATE_117 22 // HT mix#define RATE_130 23 // HT mix//#define RATE_AUTO_SWITCH 255 // for StaCfg.FixedTxRate only#define HTRATE_0 12#define RATE_FIRST_MM_RATE HTRATE_0#define RATE_FIRST_HT_RATE HTRATE_0#define RATE_LAST_HT_RATE HTRATE_0// pTxWI->txop#define IFS_HTTXOP 0 // The txop will be handles by ASIC.#define IFS_PIFS 1#define IFS_SIFS 2#define IFS_BACKOFF 3// pTxD->RetryMode #define LONG_RETRY 1#define SHORT_RETRY 0// Country Region definition#define REGION_MINIMUM_BG_BAND 0#define REGION_0_BG_BAND 0 // 1-11#define REGION_1_BG_BAND 1 // 1-13#define REGION_2_BG_BAND 2 // 10-11#define REGION_3_BG_BAND 3 // 10-13#define REGION_4_BG_BAND 4 // 14#define REGION_5_BG_BAND 5 // 1-14#define REGION_6_BG_BAND 6 // 3-9#define REGION_7_BG_BAND 7 // 5-13#define REGION_31_BG_BAND 31 // 5-13#define REGION_MAXIMUM_BG_BAND 7#define REGION_MINIMUM_A_BAND 0#define REGION_0_A_BAND 0 // 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165#define REGION_1_A_BAND 1 // 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140#define REGION_2_A_BAND 2 // 36, 40, 44, 48, 52, 56, 60, 64#define REGION_3_A_BAND 3 // 52, 56, 60, 64, 149, 153, 157, 161#define REGION_4_A_BAND 4 // 149, 153, 157, 161, 165#define REGION_5_A_BAND 5 // 149, 153, 157, 161#define REGION_6_A_BAND 6 // 36, 40, 44, 48#define REGION_7_A_BAND 7 // 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165, 169, 173#define REGION_8_A_BAND 8 // 52, 56, 60, 64#define REGION_9_A_BAND 9 // 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165#define REGION_10_A_BAND 10 // 36, 40, 44, 48, 149, 153, 157, 161, 165 #define REGION_11_A_BAND 11 // 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 149, 153, 157, 161#define REGION_12_A_BAND 12 // 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 #define REGION_13_A_BAND 13 // 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161#define REGION_14_A_BAND 14 // 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 136, 140, 149, 153, 157, 161, 165#define REGION_15_A_BAND 15 // 149, 153, 157, 161, 165, 169, 173#define REGION_MAXIMUM_A_BAND 15// pTxD->CipherAlg#define CIPHER_NONE 0#define CIPHER_WEP64 1#define CIPHER_WEP128 2#define CIPHER_TKIP 3#define CIPHER_AES 4#define CIPHER_CKIP64 5#define CIPHER_CKIP128 6#define CIPHER_TKIP_NO_MIC 7 // MIC appended by driver: not a valid value in hardware key table#define CIPHER_SMS4 8// LED Status.#define LED_LINK_DOWN 0#define LED_LINK_UP 1#define LED_RADIO_OFF 2#define LED_RADIO_ON 3#define LED_HALT 4#define LED_WPS 5#define LED_ON_SITE_SURVEY 6#define LED_POWER_UP 7// value domain of pAd->LedCntl.LedMode and E2PROM#define LED_MODE_DEFAULT 0#define LED_MODE_TWO_LED 1#define LED_MODE_SIGNAL_STREGTH 8 // EEPROM define =8// RC4 init value, used fro WEP & TKIP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -