Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
rc.h File Reference
#include "hw.h"

Go to the source code of this file.

Data Structures

struct  ath_rate_table
 
struct  ath_rateset
 
struct  ath_rc_stats
 
struct  ath_rate_priv
 

Macros

#define ATH_RATE_MAX   30
 
#define RATE_TABLE_SIZE   72
 
#define RC_INVALID   0x0000
 
#define RC_LEGACY   0x0001
 
#define RC_SS   0x0002
 
#define RC_DS   0x0004
 
#define RC_TS   0x0008
 
#define RC_HT_20   0x0010
 
#define RC_HT_40   0x0020
 
#define RC_STREAM_MASK   0xe
 
#define RC_DS_OR_LATER(f)
 
#define RC_TS_ONLY(f)   (((f) & RC_STREAM_MASK) == RC_TS)
 
#define RC_SS_OR_LEGACY(f)   ((f) & (RC_SS | RC_LEGACY))
 
#define RC_HT_2040   (RC_HT_20 | RC_HT_40)
 
#define RC_ALL_STREAM   (RC_SS | RC_DS | RC_TS)
 
#define RC_L_SD   (RC_LEGACY | RC_SS | RC_DS)
 
#define RC_L_SDT   (RC_LEGACY | RC_SS | RC_DS | RC_TS)
 
#define RC_HT_S_20   (RC_HT_20 | RC_SS)
 
#define RC_HT_D_20   (RC_HT_20 | RC_DS)
 
#define RC_HT_T_20   (RC_HT_20 | RC_TS)
 
#define RC_HT_S_40   (RC_HT_40 | RC_SS)
 
#define RC_HT_D_40   (RC_HT_40 | RC_DS)
 
#define RC_HT_T_40   (RC_HT_40 | RC_TS)
 
#define RC_HT_SD_20   (RC_HT_20 | RC_SS | RC_DS)
 
#define RC_HT_DT_20   (RC_HT_20 | RC_DS | RC_TS)
 
#define RC_HT_SD_40   (RC_HT_40 | RC_SS | RC_DS)
 
#define RC_HT_DT_40   (RC_HT_40 | RC_DS | RC_TS)
 
#define RC_HT_SD_2040   (RC_HT_2040 | RC_SS | RC_DS)
 
#define RC_HT_SDT_2040   (RC_HT_2040 | RC_SS | RC_DS | RC_TS)
 
#define RC_HT_SDT_20   (RC_HT_20 | RC_SS | RC_DS | RC_TS)
 
#define RC_HT_SDT_40   (RC_HT_40 | RC_SS | RC_DS | RC_TS)
 
#define RC_ALL   (RC_LEGACY | RC_HT_2040 | RC_ALL_STREAM)
 
#define WLAN_RC_PHY_DS(_phy)
 
#define WLAN_RC_PHY_TS(_phy)
 
#define WLAN_RC_PHY_20(_phy)
 
#define WLAN_RC_PHY_40(_phy)
 
#define WLAN_RC_PHY_SGI(_phy)
 
#define WLAN_RC_PHY_HT(_phy)   (_phy >= WLAN_RC_PHY_HT_20_SS)
 
#define WLAN_RC_CAP_MODE(capflag)
 
#define WLAN_RC_CAP_STREAM(capflag)
 
#define WLAN_RC_PHY_HT_VALID(flag, capflag)
 
#define WLAN_RC_DS_FLAG   (0x01)
 
#define WLAN_RC_TS_FLAG   (0x02)
 
#define WLAN_RC_40_FLAG   (0x04)
 
#define WLAN_RC_SGI_FLAG   (0x08)
 
#define WLAN_RC_HT_FLAG   (0x10)
 

Enumerations

enum  {
  WLAN_RC_PHY_OFDM, WLAN_RC_PHY_CCK, WLAN_RC_PHY_HT_20_SS, WLAN_RC_PHY_HT_20_DS,
  WLAN_RC_PHY_HT_20_TS, WLAN_RC_PHY_HT_40_SS, WLAN_RC_PHY_HT_40_DS, WLAN_RC_PHY_HT_40_TS,
  WLAN_RC_PHY_HT_20_SS_HGI, WLAN_RC_PHY_HT_20_DS_HGI, WLAN_RC_PHY_HT_20_TS_HGI, WLAN_RC_PHY_HT_40_SS_HGI,
  WLAN_RC_PHY_HT_40_DS_HGI, WLAN_RC_PHY_HT_40_TS_HGI, WLAN_RC_PHY_MAX
}
 

Macro Definition Documentation

#define ATH_RATE_MAX   30

Definition at line 26 of file rc.h.

#define RATE_TABLE_SIZE   72

Definition at line 27 of file rc.h.

#define RC_ALL   (RC_LEGACY | RC_HT_2040 | RC_ALL_STREAM)

Definition at line 65 of file rc.h.

#define RC_ALL_STREAM   (RC_SS | RC_DS | RC_TS)

Definition at line 44 of file rc.h.

#define RC_DS   0x0004

Definition at line 32 of file rc.h.

#define RC_DS_OR_LATER (   f)
Value:
((((f) & RC_STREAM_MASK) == RC_DS) || \
(((f) & RC_STREAM_MASK) == (RC_DS | RC_TS)))

Definition at line 38 of file rc.h.

#define RC_HT_20   0x0010

Definition at line 34 of file rc.h.

#define RC_HT_2040   (RC_HT_20 | RC_HT_40)

Definition at line 43 of file rc.h.

#define RC_HT_40   0x0020

Definition at line 35 of file rc.h.

#define RC_HT_D_20   (RC_HT_20 | RC_DS)

Definition at line 48 of file rc.h.

#define RC_HT_D_40   (RC_HT_40 | RC_DS)

Definition at line 51 of file rc.h.

#define RC_HT_DT_20   (RC_HT_20 | RC_DS | RC_TS)

Definition at line 55 of file rc.h.

#define RC_HT_DT_40   (RC_HT_40 | RC_DS | RC_TS)

Definition at line 57 of file rc.h.

#define RC_HT_S_20   (RC_HT_20 | RC_SS)

Definition at line 47 of file rc.h.

#define RC_HT_S_40   (RC_HT_40 | RC_SS)

Definition at line 50 of file rc.h.

#define RC_HT_SD_20   (RC_HT_20 | RC_SS | RC_DS)

Definition at line 54 of file rc.h.

#define RC_HT_SD_2040   (RC_HT_2040 | RC_SS | RC_DS)

Definition at line 59 of file rc.h.

#define RC_HT_SD_40   (RC_HT_40 | RC_SS | RC_DS)

Definition at line 56 of file rc.h.

#define RC_HT_SDT_20   (RC_HT_20 | RC_SS | RC_DS | RC_TS)

Definition at line 62 of file rc.h.

#define RC_HT_SDT_2040   (RC_HT_2040 | RC_SS | RC_DS | RC_TS)

Definition at line 60 of file rc.h.

#define RC_HT_SDT_40   (RC_HT_40 | RC_SS | RC_DS | RC_TS)

Definition at line 63 of file rc.h.

#define RC_HT_T_20   (RC_HT_20 | RC_TS)

Definition at line 49 of file rc.h.

#define RC_HT_T_40   (RC_HT_40 | RC_TS)

Definition at line 52 of file rc.h.

#define RC_INVALID   0x0000

Definition at line 29 of file rc.h.

#define RC_L_SD   (RC_LEGACY | RC_SS | RC_DS)

Definition at line 45 of file rc.h.

#define RC_L_SDT   (RC_LEGACY | RC_SS | RC_DS | RC_TS)

Definition at line 46 of file rc.h.

#define RC_LEGACY   0x0001

Definition at line 30 of file rc.h.

#define RC_SS   0x0002

Definition at line 31 of file rc.h.

#define RC_SS_OR_LEGACY (   f)    ((f) & (RC_SS | RC_LEGACY))

Definition at line 41 of file rc.h.

#define RC_STREAM_MASK   0xe

Definition at line 37 of file rc.h.

#define RC_TS   0x0008

Definition at line 33 of file rc.h.

#define RC_TS_ONLY (   f)    (((f) & RC_STREAM_MASK) == RC_TS)

Definition at line 40 of file rc.h.

#define WLAN_RC_40_FLAG   (0x04)

Definition at line 130 of file rc.h.

#define WLAN_RC_CAP_MODE (   capflag)
Value:
(((capflag & WLAN_RC_HT_FLAG) ? \

Definition at line 114 of file rc.h.

#define WLAN_RC_CAP_STREAM (   capflag)
Value:
(((capflag & WLAN_RC_TS_FLAG) ? \
(RC_TS) : ((capflag & WLAN_RC_DS_FLAG) ? RC_DS : RC_SS)))

Definition at line 117 of file rc.h.

#define WLAN_RC_DS_FLAG   (0x01)

Definition at line 128 of file rc.h.

#define WLAN_RC_HT_FLAG   (0x10)

Definition at line 132 of file rc.h.

#define WLAN_RC_PHY_20 (   _phy)
Value:
|| (_phy == WLAN_RC_PHY_HT_20_DS) \
|| (_phy == WLAN_RC_PHY_HT_20_TS) \
|| (_phy == WLAN_RC_PHY_HT_20_SS_HGI) \
|| (_phy == WLAN_RC_PHY_HT_20_DS_HGI) \

Definition at line 93 of file rc.h.

#define WLAN_RC_PHY_40 (   _phy)
Value:
|| (_phy == WLAN_RC_PHY_HT_40_DS) \
|| (_phy == WLAN_RC_PHY_HT_40_TS) \
|| (_phy == WLAN_RC_PHY_HT_40_SS_HGI) \
|| (_phy == WLAN_RC_PHY_HT_40_DS_HGI) \

Definition at line 99 of file rc.h.

#define WLAN_RC_PHY_DS (   _phy)
Value:
|| (_phy == WLAN_RC_PHY_HT_40_DS) \
|| (_phy == WLAN_RC_PHY_HT_20_DS_HGI) \

Definition at line 85 of file rc.h.

#define WLAN_RC_PHY_HT (   _phy)    (_phy >= WLAN_RC_PHY_HT_20_SS)

Definition at line 112 of file rc.h.

#define WLAN_RC_PHY_HT_VALID (   flag,
  capflag 
)
Value:
(((flag & RC_HT_20) && !(capflag & WLAN_RC_40_FLAG)) || \
((flag & RC_HT_40) && (capflag & WLAN_RC_40_FLAG)))

Definition at line 124 of file rc.h.

#define WLAN_RC_PHY_SGI (   _phy)
Value:

Definition at line 105 of file rc.h.

#define WLAN_RC_PHY_TS (   _phy)
Value:
|| (_phy == WLAN_RC_PHY_HT_40_TS) \
|| (_phy == WLAN_RC_PHY_HT_20_TS_HGI) \

Definition at line 89 of file rc.h.

#define WLAN_RC_SGI_FLAG   (0x08)

Definition at line 131 of file rc.h.

#define WLAN_RC_TS_FLAG   (0x02)

Definition at line 129 of file rc.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
WLAN_RC_PHY_OFDM 
WLAN_RC_PHY_CCK 
WLAN_RC_PHY_HT_20_SS 
WLAN_RC_PHY_HT_20_DS 
WLAN_RC_PHY_HT_20_TS 
WLAN_RC_PHY_HT_40_SS 
WLAN_RC_PHY_HT_40_DS 
WLAN_RC_PHY_HT_40_TS 
WLAN_RC_PHY_HT_20_SS_HGI 
WLAN_RC_PHY_HT_20_DS_HGI 
WLAN_RC_PHY_HT_20_TS_HGI 
WLAN_RC_PHY_HT_40_SS_HGI 
WLAN_RC_PHY_HT_40_DS_HGI 
WLAN_RC_PHY_HT_40_TS_HGI 
WLAN_RC_PHY_MAX 

Definition at line 67 of file rc.h.