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

Go to the source code of this file.

Data Structures

struct  ath5k_srev_name
 
struct  ath5k_buf
 
struct  ath5k_vif
 
struct  ath5k_vif_iter_data
 

Macros

#define ath5k_hw_hasbssidmask(_ah)   (ah->ah_version == AR5K_AR5212)
 
#define ath5k_hw_hasveol(_ah)   (ah->ah_version != AR5K_AR5210)
 

Enumerations

enum  ath5k_srev_type { AR5K_VERSION_MAC, AR5K_VERSION_RAD }
 

Functions

void ath5k_vif_iter (void *data, u8 *mac, struct ieee80211_vif *vif)
 
bool ath5k_any_vif_assoc (struct ath5k_hw *ah)
 
int ath5k_start (struct ieee80211_hw *hw)
 
void ath5k_stop (struct ieee80211_hw *hw)
 
void ath5k_beacon_update_timers (struct ath5k_hw *ah, u64 bc_tsf)
 
int ath5k_beacon_update (struct ieee80211_hw *hw, struct ieee80211_vif *vif)
 
void ath5k_beacon_config (struct ath5k_hw *ah)
 
void ath5k_set_beacon_filter (struct ieee80211_hw *hw, bool enable)
 
void ath5k_update_bssid_mask_and_opmode (struct ath5k_hw *ah, struct ieee80211_vif *vif)
 
int ath5k_chan_set (struct ath5k_hw *ah, struct ieee80211_channel *chan)
 
void ath5k_txbuf_free_skb (struct ath5k_hw *ah, struct ath5k_buf *bf)
 
void ath5k_rxbuf_free_skb (struct ath5k_hw *ah, struct ath5k_buf *bf)
 
void ath5k_tx_queue (struct ieee80211_hw *hw, struct sk_buff *skb, struct ath5k_txq *txq)
 
const charath5k_chip_name (enum ath5k_srev_type type, u_int16_t val)
 
int ath5k_init_ah (struct ath5k_hw *ah, const struct ath_bus_ops *bus_ops)
 
void ath5k_deinit_ah (struct ath5k_hw *ah)
 

Macro Definition Documentation

#define ath5k_hw_hasbssidmask (   _ah)    (ah->ah_version == AR5K_AR5212)

Definition at line 114 of file base.h.

#define ath5k_hw_hasveol (   _ah)    (ah->ah_version != AR5K_AR5210)

Definition at line 117 of file base.h.

Enumeration Type Documentation

Enumerator:
AR5K_VERSION_MAC 
AR5K_VERSION_RAD 

Definition at line 52 of file base.h.

Function Documentation

bool ath5k_any_vif_assoc ( struct ath5k_hw ah)

Definition at line 3040 of file base.c.

void ath5k_beacon_config ( struct ath5k_hw ah)

ath5k_beacon_config - Configure the beacon queues and interrupts

: struct ath5k_hw pointer we are operating on

In IBSS mode we use a self-linked tx descriptor if possible. We enable SWBA interrupts to detect TSF updates only.

Definition at line 2059 of file base.c.

int ath5k_beacon_update ( struct ieee80211_hw hw,
struct ieee80211_vif vif 
)

Definition at line 1803 of file base.c.

void ath5k_beacon_update_timers ( struct ath5k_hw ah,
u64  bc_tsf 
)

ath5k_beacon_update_timers - update beacon timers

: struct ath5k_hw pointer we are operating on : the timestamp of the beacon. 0 to reset the TSF. -1 to perform a beacon timer update based on the current HW TSF.

Calculate the next target beacon transmit time (TBTT) based on the timestamp of a received beacon or the current local hardware TSF and write it to the beacon timer registers.

This is called in a variety of situations, e.g. when a beacon is received, when a TSF update has been detected, but also when an new IBSS is created or when we otherwise know we have to update the timers, but we keep it in this function to have it all together in one place.

Definition at line 1957 of file base.c.

int ath5k_chan_set ( struct ath5k_hw ah,
struct ieee80211_channel chan 
)

Definition at line 436 of file base.c.

const char* ath5k_chip_name ( enum ath5k_srev_type  type,
u_int16_t  val 
)

Definition at line 202 of file base.c.

void ath5k_deinit_ah ( struct ath5k_hw ah)

Definition at line 3006 of file base.c.

int ath5k_init_ah ( struct ath5k_hw ah,
const struct ath_bus_ops bus_ops 
)

Definition at line 2438 of file base.c.

void ath5k_rxbuf_free_skb ( struct ath5k_hw ah,
struct ath5k_buf bf 
)

Definition at line 858 of file base.c.

void ath5k_set_beacon_filter ( struct ieee80211_hw hw,
bool  enable 
)

Definition at line 3054 of file base.c.

int ath5k_start ( struct ieee80211_hw hw)

Definition at line 2628 of file base.c.

void ath5k_stop ( struct ieee80211_hw hw)

Definition at line 2710 of file base.c.

Definition at line 1526 of file base.c.

void ath5k_txbuf_free_skb ( struct ath5k_hw ah,
struct ath5k_buf bf 
)

Definition at line 844 of file base.c.

void ath5k_update_bssid_mask_and_opmode ( struct ath5k_hw ah,
struct ieee80211_vif vif 
)

Definition at line 492 of file base.c.

void ath5k_vif_iter ( void data,
u8 mac,
struct ieee80211_vif vif 
)

Definition at line 451 of file base.c.