Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
rate.c File Reference
#include <linux/kernel.h>
#include <linux/rtnetlink.h>
#include <linux/slab.h>
#include <linux/module.h>
#include "rate.h"
#include "ieee80211_i.h"
#include "debugfs.h"

Go to the source code of this file.

Data Structures

struct  rate_control_alg
 

Functions

 module_param (ieee80211_default_rc_algo, charp, 0644)
 
 MODULE_PARM_DESC (ieee80211_default_rc_algo,"Default rate control algorithm for mac80211 to use")
 
int ieee80211_rate_control_register (struct rate_control_ops *ops)
 
 EXPORT_SYMBOL (ieee80211_rate_control_register)
 
void ieee80211_rate_control_unregister (struct rate_control_ops *ops)
 
 EXPORT_SYMBOL (ieee80211_rate_control_unregister)
 
bool rate_control_send_low (struct ieee80211_sta *sta, void *priv_sta, struct ieee80211_tx_rate_control *txrc)
 
 EXPORT_SYMBOL (rate_control_send_low)
 
void rate_control_get_rate (struct ieee80211_sub_if_data *sdata, struct sta_info *sta, struct ieee80211_tx_rate_control *txrc)
 
int ieee80211_init_rate_ctrl_alg (struct ieee80211_local *local, const char *name)
 
void rate_control_deinitialize (struct ieee80211_local *local)
 

Function Documentation

EXPORT_SYMBOL ( ieee80211_rate_control_register  )
EXPORT_SYMBOL ( ieee80211_rate_control_unregister  )
EXPORT_SYMBOL ( rate_control_send_low  )
int ieee80211_init_rate_ctrl_alg ( struct ieee80211_local local,
const char name 
)

Definition at line 490 of file rate.c.

int ieee80211_rate_control_register ( struct rate_control_ops ops)

Definition at line 32 of file rate.c.

void ieee80211_rate_control_unregister ( struct rate_control_ops ops)

Definition at line 63 of file rate.c.

module_param ( ieee80211_default_rc_algo  ,
charp  ,
0644   
)
MODULE_PARM_DESC ( ieee80211_default_rc_algo  ,
"Default rate control algorithm for mac80211 to use"   
)
void rate_control_deinitialize ( struct ieee80211_local local)

Definition at line 522 of file rate.c.

void rate_control_get_rate ( struct ieee80211_sub_if_data sdata,
struct sta_info sta,
struct ieee80211_tx_rate_control txrc 
)

Definition at line 430 of file rate.c.

bool rate_control_send_low ( struct ieee80211_sta sta,
void priv_sta,
struct ieee80211_tx_rate_control txrc 
)

rate_control_send_low - helper for drivers for management/no-ack frames

Rate control algorithms that agree to use the lowest rate to send management frames and NO_ACK data with the respective hw retries should use this in the beginning of their mac80211 get_rate callback. If true is returned the rate control can simply return. If false is returned we guarantee that sta and sta and priv_sta is not null.

Rate control algorithms wishing to do more intelligent selection of rate for multicast/broadcast frames may choose to not use this.

: &struct ieee80211_sta pointer to the target destination. Note that this may be null. : private rate control structure. This may be null. : rate control information we sholud populate for mac80211.

Definition at line 256 of file rate.c.