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

Go to the source code of this file.

Macros

#define RTL_DUMMY_OFFSET   0
 
#define RTL_DUMMY_UNIT   8
 
#define RTL_TX_DUMMY_SIZE   (RTL_DUMMY_OFFSET * RTL_DUMMY_UNIT)
 
#define RTL_TX_DESC_SIZE   32
 
#define RTL_TX_HEADER_SIZE   (RTL_TX_DESC_SIZE + RTL_TX_DUMMY_SIZE)
 
#define HT_AMSDU_SIZE_4K   3839
 
#define HT_AMSDU_SIZE_8K   7935
 
#define MAX_BIT_RATE_40MHZ_MCS15   300 /* Mbps */
 
#define MAX_BIT_RATE_40MHZ_MCS7   150 /* Mbps */
 
#define RTL_RATE_COUNT_LEGACY   12
 
#define RTL_CHANNEL_COUNT   14
 
#define FRAME_OFFSET_FRAME_CONTROL   0
 
#define FRAME_OFFSET_DURATION   2
 
#define FRAME_OFFSET_ADDRESS1   4
 
#define FRAME_OFFSET_ADDRESS2   10
 
#define FRAME_OFFSET_ADDRESS3   16
 
#define FRAME_OFFSET_SEQUENCE   22
 
#define FRAME_OFFSET_ADDRESS4   24
 
#define SET_80211_HDR_FRAME_CONTROL(_hdr, _val)   WRITEEF2BYTE(_hdr, _val)
 
#define SET_80211_HDR_TYPE_AND_SUBTYPE(_hdr, _val)   WRITEEF1BYTE(_hdr, _val)
 
#define SET_80211_HDR_PWR_MGNT(_hdr, _val)   SET_BITS_TO_LE_2BYTE(_hdr, 12, 1, _val)
 
#define SET_80211_HDR_TO_DS(_hdr, _val)   SET_BITS_TO_LE_2BYTE(_hdr, 8, 1, _val)
 
#define SET_80211_PS_POLL_AID(_hdr, _val)   (*(u16 *)((u8 *)(_hdr) + 2) = _val)
 
#define SET_80211_PS_POLL_BSSID(_hdr, _val)   memcpy(((u8 *)(_hdr)) + 4, (u8 *)(_val), ETH_ALEN)
 
#define SET_80211_PS_POLL_TA(_hdr, _val)   memcpy(((u8 *)(_hdr)) + 10, (u8 *)(_val), ETH_ALEN)
 
#define SET_80211_HDR_DURATION(_hdr, _val)   (*(u16 *)((u8 *)(_hdr) + FRAME_OFFSET_DURATION) = le16_to_cpu(_val))
 
#define SET_80211_HDR_ADDRESS1(_hdr, _val)   CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS1, (u8 *)(_val))
 
#define SET_80211_HDR_ADDRESS2(_hdr, _val)   CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS2, (u8 *)(_val))
 
#define SET_80211_HDR_ADDRESS3(_hdr, _val)   CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS3, (u8 *)(_val))
 
#define SET_80211_HDR_FRAGMENT_SEQUENCE(_hdr, _val)   WRITEEF2BYTE((u8 *)(_hdr)+FRAME_OFFSET_SEQUENCE, _val)
 
#define SET_BEACON_PROBE_RSP_TIME_STAMP_LOW(__phdr, __val)   WRITEEF4BYTE(((u8 *)(__phdr)) + 24, __val)
 
#define SET_BEACON_PROBE_RSP_TIME_STAMP_HIGH(__phdr, __val)   WRITEEF4BYTE(((u8 *)(__phdr)) + 28, __val)
 
#define SET_BEACON_PROBE_RSP_BEACON_INTERVAL(__phdr, __val)   WRITEEF2BYTE(((u8 *)(__phdr)) + 32, __val)
 
#define GET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr)   READEF2BYTE(((u8 *)(__phdr)) + 34)
 
#define SET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr, __val)   WRITEEF2BYTE(((u8 *)(__phdr)) + 34, __val)
 
#define MASK_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr, __val)
 

Enumerations

enum  ap_peer {
  PEER_UNKNOWN = 0, PEER_RTL = 1, PEER_RTL_92SE = 2, PEER_BROAD = 3,
  PEER_RAL = 4, PEER_ATH = 5, PEER_CISCO = 6, PEER_MARV = 7,
  PEER_AIRGO = 9, PEER_MAX = 10
}
 

Functions

int rtl_init_core (struct ieee80211_hw *hw)
 
void rtl_deinit_core (struct ieee80211_hw *hw)
 
void rtl_init_rx_config (struct ieee80211_hw *hw)
 
void rtl_init_rfkill (struct ieee80211_hw *hw)
 
void rtl_deinit_rfkill (struct ieee80211_hw *hw)
 
void rtl_watch_dog_timer_callback (unsigned long data)
 
void rtl_deinit_deferred_work (struct ieee80211_hw *hw)
 
bool rtl_action_proc (struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx)
 
u8 rtl_is_special_data (struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx)
 
int rtl_tx_agg_start (struct ieee80211_hw *hw, struct ieee80211_sta *sta, u16 tid, u16 *ssn)
 
int rtl_tx_agg_stop (struct ieee80211_hw *hw, struct ieee80211_sta *sta, u16 tid)
 
int rtl_tx_agg_oper (struct ieee80211_hw *hw, struct ieee80211_sta *sta, u16 tid)
 
void rtl_watchdog_wq_callback (void *data)
 
void rtl_get_tcb_desc (struct ieee80211_hw *hw, struct ieee80211_tx_info *info, struct ieee80211_sta *sta, struct sk_buff *skb, struct rtl_tcb_desc *tcb_desc)
 
int rtl_send_smps_action (struct ieee80211_hw *hw, struct ieee80211_sta *sta, u8 *da, u8 *bssid, enum ieee80211_smps_mode smps)
 
u8rtl_find_ie (u8 *data, unsigned int len, u8 ie)
 
void rtl_recognize_peer (struct ieee80211_hw *hw, u8 *data, unsigned int len)
 
u8 rtl_tid_to_ac (u8 tid)
 
int rtlwifi_rate_mapping (struct ieee80211_hw *hw, bool isht, u8 desc_rate, bool first_ampdu)
 

Variables

struct attribute_group rtl_attribute_group
 

Macro Definition Documentation

#define FRAME_OFFSET_ADDRESS1   4

Definition at line 63 of file base.h.

#define FRAME_OFFSET_ADDRESS2   10

Definition at line 64 of file base.h.

#define FRAME_OFFSET_ADDRESS3   16

Definition at line 65 of file base.h.

#define FRAME_OFFSET_ADDRESS4   24

Definition at line 67 of file base.h.

#define FRAME_OFFSET_DURATION   2

Definition at line 62 of file base.h.

#define FRAME_OFFSET_FRAME_CONTROL   0

Definition at line 61 of file base.h.

#define FRAME_OFFSET_SEQUENCE   22

Definition at line 66 of file base.h.

#define GET_BEACON_PROBE_RSP_CAPABILITY_INFO (   __phdr)    READEF2BYTE(((u8 *)(__phdr)) + 34)

Definition at line 102 of file base.h.

#define HT_AMSDU_SIZE_4K   3839

Definition at line 52 of file base.h.

#define HT_AMSDU_SIZE_8K   7935

Definition at line 53 of file base.h.

#define MASK_BEACON_PROBE_RSP_CAPABILITY_INFO (   __phdr,
  __val 
)
Value:

Definition at line 106 of file base.h.

#define MAX_BIT_RATE_40MHZ_MCS15   300 /* Mbps */

Definition at line 55 of file base.h.

#define MAX_BIT_RATE_40MHZ_MCS7   150 /* Mbps */

Definition at line 56 of file base.h.

#define RTL_CHANNEL_COUNT   14

Definition at line 59 of file base.h.

#define RTL_DUMMY_OFFSET   0

Definition at line 46 of file base.h.

#define RTL_DUMMY_UNIT   8

Definition at line 47 of file base.h.

#define RTL_RATE_COUNT_LEGACY   12

Definition at line 58 of file base.h.

#define RTL_TX_DESC_SIZE   32

Definition at line 49 of file base.h.

#define RTL_TX_DUMMY_SIZE   (RTL_DUMMY_OFFSET * RTL_DUMMY_UNIT)

Definition at line 48 of file base.h.

#define RTL_TX_HEADER_SIZE   (RTL_TX_DESC_SIZE + RTL_TX_DUMMY_SIZE)

Definition at line 50 of file base.h.

#define SET_80211_HDR_ADDRESS1 (   _hdr,
  _val 
)    CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS1, (u8 *)(_val))

Definition at line 87 of file base.h.

#define SET_80211_HDR_ADDRESS2 (   _hdr,
  _val 
)    CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS2, (u8 *)(_val))

Definition at line 89 of file base.h.

#define SET_80211_HDR_ADDRESS3 (   _hdr,
  _val 
)    CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS3, (u8 *)(_val))

Definition at line 91 of file base.h.

#define SET_80211_HDR_DURATION (   _hdr,
  _val 
)    (*(u16 *)((u8 *)(_hdr) + FRAME_OFFSET_DURATION) = le16_to_cpu(_val))

Definition at line 85 of file base.h.

#define SET_80211_HDR_FRAGMENT_SEQUENCE (   _hdr,
  _val 
)    WRITEEF2BYTE((u8 *)(_hdr)+FRAME_OFFSET_SEQUENCE, _val)

Definition at line 93 of file base.h.

#define SET_80211_HDR_FRAME_CONTROL (   _hdr,
  _val 
)    WRITEEF2BYTE(_hdr, _val)

Definition at line 69 of file base.h.

#define SET_80211_HDR_PWR_MGNT (   _hdr,
  _val 
)    SET_BITS_TO_LE_2BYTE(_hdr, 12, 1, _val)

Definition at line 73 of file base.h.

#define SET_80211_HDR_TO_DS (   _hdr,
  _val 
)    SET_BITS_TO_LE_2BYTE(_hdr, 8, 1, _val)

Definition at line 75 of file base.h.

#define SET_80211_HDR_TYPE_AND_SUBTYPE (   _hdr,
  _val 
)    WRITEEF1BYTE(_hdr, _val)

Definition at line 71 of file base.h.

#define SET_80211_PS_POLL_AID (   _hdr,
  _val 
)    (*(u16 *)((u8 *)(_hdr) + 2) = _val)

Definition at line 78 of file base.h.

#define SET_80211_PS_POLL_BSSID (   _hdr,
  _val 
)    memcpy(((u8 *)(_hdr)) + 4, (u8 *)(_val), ETH_ALEN)

Definition at line 80 of file base.h.

#define SET_80211_PS_POLL_TA (   _hdr,
  _val 
)    memcpy(((u8 *)(_hdr)) + 10, (u8 *)(_val), ETH_ALEN)

Definition at line 82 of file base.h.

#define SET_BEACON_PROBE_RSP_BEACON_INTERVAL (   __phdr,
  __val 
)    WRITEEF2BYTE(((u8 *)(__phdr)) + 32, __val)

Definition at line 100 of file base.h.

#define SET_BEACON_PROBE_RSP_CAPABILITY_INFO (   __phdr,
  __val 
)    WRITEEF2BYTE(((u8 *)(__phdr)) + 34, __val)

Definition at line 104 of file base.h.

#define SET_BEACON_PROBE_RSP_TIME_STAMP_HIGH (   __phdr,
  __val 
)    WRITEEF4BYTE(((u8 *)(__phdr)) + 28, __val)

Definition at line 98 of file base.h.

#define SET_BEACON_PROBE_RSP_TIME_STAMP_LOW (   __phdr,
  __val 
)    WRITEEF4BYTE(((u8 *)(__phdr)) + 24, __val)

Definition at line 96 of file base.h.

Enumeration Type Documentation

enum ap_peer
Enumerator:
PEER_UNKNOWN 
PEER_RTL 
PEER_RTL_92SE 
PEER_BROAD 
PEER_RAL 
PEER_ATH 
PEER_CISCO 
PEER_MARV 
PEER_AIRGO 
PEER_MAX 

Definition at line 33 of file base.h.

Function Documentation

bool rtl_action_proc ( struct ieee80211_hw hw,
struct sk_buff skb,
u8  is_tx 
)

Definition at line 904 of file base.c.

void rtl_deinit_core ( struct ieee80211_hw hw)

Definition at line 466 of file base.c.

void rtl_deinit_deferred_work ( struct ieee80211_hw hw)

Definition at line 375 of file base.c.

void rtl_deinit_rfkill ( struct ieee80211_hw hw)

Definition at line 415 of file base.c.

u8* rtl_find_ie ( u8 data,
unsigned int  len,
u8  ie 
)

Definition at line 1248 of file base.c.

void rtl_get_tcb_desc ( struct ieee80211_hw hw,
struct ieee80211_tx_info info,
struct ieee80211_sta sta,
struct sk_buff skb,
struct rtl_tcb_desc tcb_desc 
)

Definition at line 829 of file base.c.

int rtl_init_core ( struct ieee80211_hw hw)

Definition at line 420 of file base.c.

void rtl_init_rfkill ( struct ieee80211_hw hw)

Definition at line 387 of file base.c.

void rtl_init_rx_config ( struct ieee80211_hw hw)

Definition at line 470 of file base.c.

u8 rtl_is_special_data ( struct ieee80211_hw hw,
struct sk_buff skb,
u8  is_tx 
)

Definition at line 948 of file base.c.

void rtl_recognize_peer ( struct ieee80211_hw hw,
u8 data,
unsigned int  len 
)

Definition at line 1418 of file base.c.

int rtl_send_smps_action ( struct ieee80211_hw hw,
struct ieee80211_sta sta,
u8 da,
u8 bssid,
enum ieee80211_smps_mode  smps 
)

Definition at line 1312 of file base.c.

u8 rtl_tid_to_ac ( u8  tid)

Definition at line 170 of file base.c.

int rtl_tx_agg_oper ( struct ieee80211_hw hw,
struct ieee80211_sta sta,
u16  tid 
)

Definition at line 1080 of file base.c.

int rtl_tx_agg_start ( struct ieee80211_hw hw,
struct ieee80211_sta sta,
u16  tid,
u16 ssn 
)

Definition at line 1021 of file base.c.

int rtl_tx_agg_stop ( struct ieee80211_hw hw,
struct ieee80211_sta sta,
u16  tid 
)

Definition at line 1051 of file base.c.

void rtl_watch_dog_timer_callback ( unsigned long  data)

Definition at line 1231 of file base.c.

void rtl_watchdog_wq_callback ( void data)

Definition at line 1111 of file base.c.

int rtlwifi_rate_mapping ( struct ieee80211_hw hw,
bool  isht,
u8  desc_rate,
bool  first_ampdu 
)

Definition at line 689 of file base.c.

Variable Documentation

struct attribute_group rtl_attribute_group

Definition at line 1555 of file base.c.