Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Variables
rtl819x_HT.h File Reference

Go to the source code of this file.

Data Structures

struct  ht_capab_ele
 
struct  ht_info_ele
 
struct  mimops_ctrl
 
struct  rt_hi_throughput
 
struct  rt_htinfo_sta_entry
 
struct  bss_ht
 
struct  mimo_rssi
 
struct  mimo_evm
 
struct  false_alarm_stats
 

Macros

#define HT_OPMODE_NO_PROTECT   0
 
#define HT_OPMODE_OPTIONAL   1
 
#define HT_OPMODE_40MHZ_PROTECT   2
 
#define HT_OPMODE_MIXED   3
 
#define MIMO_PS_STATIC   0
 
#define MIMO_PS_DYNAMIC   1
 
#define MIMO_PS_NOLIMIT   3
 
#define sHTCLng   4
 
#define HT_SUPPORTED_MCS_1SS_BITMAP   0x000000ff
 
#define HT_SUPPORTED_MCS_2SS_BITMAP   0x0000ff00
 
#define HT_SUPPORTED_MCS_1SS_2SS_BITMAP   (HT_MCS_1SS_BITMAP | HT_MCS_1SS_2SS_BITMAP)
 
#define CHHLOP_IN_PROGRESS(_pHTInfo)   ((_pHTInfo)->ChnlOp > CHNLOP_NONE) ? true : false
 
#define PICK_RATE(_nLegacyRate, _nMcsRate)   ((_nMcsRate == 0) ? (_nLegacyRate&0x7f) : (_nMcsRate))
 
#define LEGACY_WIRELESS_MODE   IEEE_MODE_MASK
 
#define CURRENT_RATE(WirelessMode, LegacyRate, HTRate)
 
#define RATE_ADPT_1SS_MASK   0xFF
 
#define RATE_ADPT_2SS_MASK   0xF0
 
#define RATE_ADPT_MCS32_MASK   0x01
 
#define IS_11N_MCS_RATE(rate)   (rate&0x80)
 

Enumerations

enum  ht_mcs_rate {
  HT_MCS0 = 0x00000001, HT_MCS1 = 0x00000002, HT_MCS2 = 0x00000004, HT_MCS3 = 0x00000008,
  HT_MCS4 = 0x00000010, HT_MCS5 = 0x00000020, HT_MCS6 = 0x00000040, HT_MCS7 = 0x00000080,
  HT_MCS8 = 0x00000100, HT_MCS9 = 0x00000200, HT_MCS10 = 0x00000400, HT_MCS11 = 0x00000800,
  HT_MCS12 = 0x00001000, HT_MCS13 = 0x00002000, HT_MCS14 = 0x00004000, HT_MCS15 = 0x00008000
}
 
enum  ht_channel_width { HT_CHANNEL_WIDTH_20 = 0, HT_CHANNEL_WIDTH_20_40 = 1, HT_CHANNEL_WIDTH_20 = 0, HT_CHANNEL_WIDTH_20_40 = 1 }
 
enum  ht_extchnl_offset { HT_EXTCHNL_OFFSET_NO_EXT = 0, HT_EXTCHNL_OFFSET_UPPER = 1, HT_EXTCHNL_OFFSET_NO_DEF = 2, HT_EXTCHNL_OFFSET_LOWER = 3 }
 
enum  chnl_op { CHNLOP_NONE = 0, CHNLOP_SCAN = 1, CHNLOP_SWBW = 2, CHNLOP_SWCHNL = 3 }
 
enum  ht_action {
  ACT_RECOMMAND_WIDTH = 0, ACT_MIMO_PWR_SAVE = 1, ACT_PSMP = 2, ACT_SET_PCO_PHASE = 3,
  ACT_MIMO_CHL_MEASURE = 4, ACT_RECIPROCITY_CORRECT = 5, ACT_MIMO_CSI_MATRICS = 6, ACT_MIMO_NOCOMPR_STEER = 7,
  ACT_MIMO_COMPR_STEER = 8, ACT_ANTENNA_SELECT = 9
}
 
enum  ht_bw40_sc { SC_MODE_DUPLICATE = 0, SC_MODE_LOWER = 1, SC_MODE_UPPER = 2, SC_MODE_FULL40MHZ = 3 }
 
enum  ht_spec_ver { HT_SPEC_VER_IEEE = 0, HT_SPEC_VER_EWC = 1 }
 
enum  ht_aggre_mode { HT_AGG_AUTO = 0, HT_AGG_FORCE_ENABLE = 1, HT_AGG_FORCE_DISABLE = 2 }
 
enum  ht_aggre_size { HT_AGG_SIZE_8K = 0, HT_AGG_SIZE_16K = 1, HT_AGG_SIZE_32K = 2, HT_AGG_SIZE_64K = 3 }
 
enum  ht_iot_peer {
  HT_IOT_PEER_UNKNOWN = 0, HT_IOT_PEER_REALTEK = 1, HT_IOT_PEER_REALTEK_92SE = 2, HT_IOT_PEER_BROADCOM = 3,
  HT_IOT_PEER_RALINK = 4, HT_IOT_PEER_ATHEROS = 5, HT_IOT_PEER_CISCO = 6, HT_IOT_PEER_MARVELL = 7,
  HT_IOT_PEER_92U_SOFTAP = 8, HT_IOT_PEER_SELF_SOFTAP = 9, HT_IOT_PEER_AIRGO = 10, HT_IOT_PEER_MAX = 11
}
 
enum  ht_iot_peer_subtype { HT_IOT_PEER_ATHEROS_DIR635 = 0 }
 
enum  ht_iot_action {
  HT_IOT_ACT_TX_USE_AMSDU_4K = 0x00000001, HT_IOT_ACT_TX_USE_AMSDU_8K = 0x00000002, HT_IOT_ACT_DISABLE_MCS14 = 0x00000004, HT_IOT_ACT_DISABLE_MCS15 = 0x00000008,
  HT_IOT_ACT_DISABLE_ALL_2SS = 0x00000010, HT_IOT_ACT_DISABLE_EDCA_TURBO = 0x00000020, HT_IOT_ACT_MGNT_USE_CCK_6M = 0x00000040, HT_IOT_ACT_CDD_FSYNC = 0x00000080,
  HT_IOT_ACT_PURE_N_MODE = 0x00000100, HT_IOT_ACT_FORCED_CTS2SELF = 0x00000200, HT_IOT_ACT_FORCED_RTS = 0x00000400, HT_IOT_ACT_AMSDU_ENABLE = 0x00000800,
  HT_IOT_ACT_REJECT_ADDBA_REQ = 0x00001000, HT_IOT_ACT_ALLOW_PEER_AGG_ONE_PKT = 0x00002000, HT_IOT_ACT_EDCA_BIAS_ON_RX = 0x00004000, HT_IOT_ACT_HYBRID_AGGREGATION = 0x00010000,
  HT_IOT_ACT_DISABLE_SHORT_GI = 0x00020000, HT_IOT_ACT_DISABLE_HIGH_POWER = 0x00040000, HT_IOT_ACT_DISABLE_TX_40_MHZ = 0x00080000, HT_IOT_ACT_TX_NO_AGGREGATION = 0x00100000,
  HT_IOT_ACT_DISABLE_TX_2SS = 0x00200000, HT_IOT_ACT_MID_HIGHPOWER = 0x00400000, HT_IOT_ACT_NULL_DATA_POWER_SAVING = 0x00800000, HT_IOT_ACT_DISABLE_CCK_RATE = 0x01000000,
  HT_IOT_ACT_FORCED_ENABLE_BE_TXOP = 0x02000000, HT_IOT_ACT_WA_IOT_Broadcom = 0x04000000, HT_IOT_ACT_DISABLE_RX_40MHZ_SHORT_GI = 0x08000000
}
 
enum  ht_iot_rafunc { HT_IOT_RAFUNC_DISABLE_ALL = 0x00, HT_IOT_RAFUNC_PEER_1R = 0x01, HT_IOT_RAFUNC_TX_AMSDU = 0x02 }
 
enum  rt_ht_capability {
  RT_HT_CAP_USE_TURBO_AGGR = 0x01, RT_HT_CAP_USE_LONG_PREAMBLE = 0x02, RT_HT_CAP_USE_AMPDU = 0x04, RT_HT_CAP_USE_WOW = 0x8,
  RT_HT_CAP_USE_SOFTAP = 0x10, RT_HT_CAP_USE_92SE = 0x20
}
 

Variables

struct ht_capab_ele __packed
 
u8 MCS_FILTER_ALL [16]
 
u8 MCS_FILTER_1SS [16]
 

Macro Definition Documentation

#define CHHLOP_IN_PROGRESS (   _pHTInfo)    ((_pHTInfo)->ChnlOp > CHNLOP_NONE) ? true : false

Definition at line 80 of file rtl819x_HT.h.

#define CURRENT_RATE (   WirelessMode,
  LegacyRate,
  HTRate 
)
Value:
((WirelessMode & (LEGACY_WIRELESS_MODE)) != 0) ? \
(LegacyRate) : (PICK_RATE(LegacyRate, HTRate))

Definition at line 387 of file rtl819x_HT.h.

#define HT_OPMODE_40MHZ_PROTECT   2

Definition at line 25 of file rtl819x_HT.h.

#define HT_OPMODE_MIXED   3

Definition at line 26 of file rtl819x_HT.h.

#define HT_OPMODE_NO_PROTECT   0

Definition at line 23 of file rtl819x_HT.h.

#define HT_OPMODE_OPTIONAL   1

Definition at line 24 of file rtl819x_HT.h.

#define HT_SUPPORTED_MCS_1SS_2SS_BITMAP   (HT_MCS_1SS_BITMAP | HT_MCS_1SS_2SS_BITMAP)

Definition at line 39 of file rtl819x_HT.h.

#define HT_SUPPORTED_MCS_1SS_BITMAP   0x000000ff

Definition at line 37 of file rtl819x_HT.h.

#define HT_SUPPORTED_MCS_2SS_BITMAP   0x0000ff00

Definition at line 38 of file rtl819x_HT.h.

#define IS_11N_MCS_RATE (   rate)    (rate&0x80)

Definition at line 397 of file rtl819x_HT.h.

#define LEGACY_WIRELESS_MODE   IEEE_MODE_MASK

Definition at line 385 of file rtl819x_HT.h.

#define MIMO_PS_DYNAMIC   1

Definition at line 29 of file rtl819x_HT.h.

#define MIMO_PS_NOLIMIT   3

Definition at line 30 of file rtl819x_HT.h.

#define MIMO_PS_STATIC   0

Definition at line 28 of file rtl819x_HT.h.

#define PICK_RATE (   _nLegacyRate,
  _nMcsRate 
)    ((_nMcsRate == 0) ? (_nLegacyRate&0x7f) : (_nMcsRate))

Definition at line 383 of file rtl819x_HT.h.

#define RATE_ADPT_1SS_MASK   0xFF

Definition at line 393 of file rtl819x_HT.h.

#define RATE_ADPT_2SS_MASK   0xF0

Definition at line 394 of file rtl819x_HT.h.

#define RATE_ADPT_MCS32_MASK   0x01

Definition at line 395 of file rtl819x_HT.h.

#define sHTCLng   4

Definition at line 34 of file rtl819x_HT.h.

Enumeration Type Documentation

enum chnl_op
Enumerator:
CHNLOP_NONE 
CHNLOP_SCAN 
CHNLOP_SWBW 
CHNLOP_SWCHNL 

Definition at line 73 of file rtl819x_HT.h.

enum ht_action
Enumerator:
ACT_RECOMMAND_WIDTH 
ACT_MIMO_PWR_SAVE 
ACT_PSMP 
ACT_SET_PCO_PHASE 
ACT_MIMO_CHL_MEASURE 
ACT_RECIPROCITY_CORRECT 
ACT_MIMO_CSI_MATRICS 
ACT_MIMO_NOCOMPR_STEER 
ACT_MIMO_COMPR_STEER 
ACT_ANTENNA_SELECT 

Definition at line 117 of file rtl819x_HT.h.

Enumerator:
HT_AGG_AUTO 
HT_AGG_FORCE_ENABLE 
HT_AGG_FORCE_DISABLE 

Definition at line 209 of file rtl819x_HT.h.

Enumerator:
HT_AGG_SIZE_8K 
HT_AGG_SIZE_16K 
HT_AGG_SIZE_32K 
HT_AGG_SIZE_64K 

Definition at line 399 of file rtl819x_HT.h.

enum ht_bw40_sc
Enumerator:
SC_MODE_DUPLICATE 
SC_MODE_LOWER 
SC_MODE_UPPER 
SC_MODE_FULL40MHZ 

Definition at line 131 of file rtl819x_HT.h.

Enumerator:
HT_CHANNEL_WIDTH_20 
HT_CHANNEL_WIDTH_20_40 
HT_CHANNEL_WIDTH_20 
HT_CHANNEL_WIDTH_20_40 

Definition at line 61 of file rtl819x_HT.h.

Enumerator:
HT_EXTCHNL_OFFSET_NO_EXT 
HT_EXTCHNL_OFFSET_UPPER 
HT_EXTCHNL_OFFSET_NO_DEF 
HT_EXTCHNL_OFFSET_LOWER 

Definition at line 66 of file rtl819x_HT.h.

Enumerator:
HT_IOT_ACT_TX_USE_AMSDU_4K 
HT_IOT_ACT_TX_USE_AMSDU_8K 
HT_IOT_ACT_DISABLE_MCS14 
HT_IOT_ACT_DISABLE_MCS15 
HT_IOT_ACT_DISABLE_ALL_2SS 
HT_IOT_ACT_DISABLE_EDCA_TURBO 
HT_IOT_ACT_MGNT_USE_CCK_6M 
HT_IOT_ACT_CDD_FSYNC 
HT_IOT_ACT_PURE_N_MODE 
HT_IOT_ACT_FORCED_CTS2SELF 
HT_IOT_ACT_FORCED_RTS 
HT_IOT_ACT_AMSDU_ENABLE 
HT_IOT_ACT_REJECT_ADDBA_REQ 
HT_IOT_ACT_ALLOW_PEER_AGG_ONE_PKT 
HT_IOT_ACT_EDCA_BIAS_ON_RX 
HT_IOT_ACT_HYBRID_AGGREGATION 
HT_IOT_ACT_DISABLE_SHORT_GI 
HT_IOT_ACT_DISABLE_HIGH_POWER 
HT_IOT_ACT_DISABLE_TX_40_MHZ 
HT_IOT_ACT_TX_NO_AGGREGATION 
HT_IOT_ACT_DISABLE_TX_2SS 
HT_IOT_ACT_MID_HIGHPOWER 
HT_IOT_ACT_NULL_DATA_POWER_SAVING 
HT_IOT_ACT_DISABLE_CCK_RATE 
HT_IOT_ACT_FORCED_ENABLE_BE_TXOP 
HT_IOT_ACT_WA_IOT_Broadcom 
HT_IOT_ACT_DISABLE_RX_40MHZ_SHORT_GI 

Definition at line 425 of file rtl819x_HT.h.

Enumerator:
HT_IOT_PEER_UNKNOWN 
HT_IOT_PEER_REALTEK 
HT_IOT_PEER_REALTEK_92SE 
HT_IOT_PEER_BROADCOM 
HT_IOT_PEER_RALINK 
HT_IOT_PEER_ATHEROS 
HT_IOT_PEER_CISCO 
HT_IOT_PEER_MARVELL 
HT_IOT_PEER_92U_SOFTAP 
HT_IOT_PEER_SELF_SOFTAP 
HT_IOT_PEER_AIRGO 
HT_IOT_PEER_MAX 

Definition at line 406 of file rtl819x_HT.h.

Enumerator:
HT_IOT_PEER_ATHEROS_DIR635 

Definition at line 421 of file rtl819x_HT.h.

Enumerator:
HT_IOT_RAFUNC_DISABLE_ALL 
HT_IOT_RAFUNC_PEER_1R 
HT_IOT_RAFUNC_TX_AMSDU 

Definition at line 460 of file rtl819x_HT.h.

Enumerator:
HT_MCS0 
HT_MCS1 
HT_MCS2 
HT_MCS3 
HT_MCS4 
HT_MCS5 
HT_MCS6 
HT_MCS7 
HT_MCS8 
HT_MCS9 
HT_MCS10 
HT_MCS11 
HT_MCS12 
HT_MCS13 
HT_MCS14 
HT_MCS15 

Definition at line 42 of file rtl819x_HT.h.

Enumerator:
HT_SPEC_VER_IEEE 
HT_SPEC_VER_EWC 

Definition at line 204 of file rtl819x_HT.h.

Enumerator:
RT_HT_CAP_USE_TURBO_AGGR 
RT_HT_CAP_USE_LONG_PREAMBLE 
RT_HT_CAP_USE_AMPDU 
RT_HT_CAP_USE_WOW 
RT_HT_CAP_USE_SOFTAP 
RT_HT_CAP_USE_92SE 

Definition at line 466 of file rtl819x_HT.h.

Variable Documentation

u8 MCS_FILTER_1SS[16]

Definition at line 26 of file rtl819x_HTProc.c.

u8 MCS_FILTER_ALL[16]

Definition at line 21 of file rtl819x_HTProc.c.