Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
3945-rs.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <net/mac80211.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include "commands.h"
#include "3945.h"

Go to the source code of this file.

Data Structures

struct  il3945_tpt_entry
 

Macros

#define RS_NAME   "iwl-3945-rs"
 
#define RATE_MAX_WINDOW   62
 
#define RATE_FLUSH   (3*HZ)
 
#define RATE_WIN_FLUSH   (HZ/2)
 
#define IL39_RATE_HIGH_TH   11520
 
#define IL_SUCCESS_UP_TH   8960
 
#define IL_SUCCESS_DOWN_TH   10880
 
#define RATE_MIN_FAILURE_TH   6
 
#define RATE_MIN_SUCCESS_TH   8
 
#define RATE_DECREASE_TH   1920
 
#define RATE_RETRY_TH   15
 
#define RATE_FLUSH_MAX   5000 /* msec */
 
#define RATE_FLUSH_MIN   50 /* msec */
 
#define IL_AVERAGE_PACKETS   1500
 

Functions

void il3945_rs_rate_init (struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id)
 
void il3945_rate_scale_init (struct ieee80211_hw *hw, s32 sta_id)
 
int il3945_rate_control_register (void)
 
void il3945_rate_control_unregister (void)
 

Macro Definition Documentation

#define IL39_RATE_HIGH_TH   11520

Definition at line 92 of file 3945-rs.c.

#define IL_AVERAGE_PACKETS   1500

Definition at line 182 of file 3945-rs.c.

#define IL_SUCCESS_DOWN_TH   10880

Definition at line 94 of file 3945-rs.c.

#define IL_SUCCESS_UP_TH   8960

Definition at line 93 of file 3945-rs.c.

#define RATE_DECREASE_TH   1920

Definition at line 97 of file 3945-rs.c.

#define RATE_FLUSH   (3*HZ)

Definition at line 90 of file 3945-rs.c.

#define RATE_FLUSH_MAX   5000 /* msec */

Definition at line 180 of file 3945-rs.c.

#define RATE_FLUSH_MIN   50 /* msec */

Definition at line 181 of file 3945-rs.c.

#define RATE_MAX_WINDOW   62

Definition at line 89 of file 3945-rs.c.

#define RATE_MIN_FAILURE_TH   6

Definition at line 95 of file 3945-rs.c.

#define RATE_MIN_SUCCESS_TH   8

Definition at line 96 of file 3945-rs.c.

#define RATE_RETRY_TH   15

Definition at line 98 of file 3945-rs.c.

#define RATE_WIN_FLUSH   (HZ/2)

Definition at line 91 of file 3945-rs.c.

#define RS_NAME   "iwl-3945-rs"

Definition at line 42 of file 3945-rs.c.

Function Documentation

int il3945_rate_control_register ( void  )

Definition at line 970 of file 3945-rs.c.

void il3945_rate_control_unregister ( void  )

Definition at line 976 of file 3945-rs.c.

void il3945_rate_scale_init ( struct ieee80211_hw hw,
s32  sta_id 
)

il3945_rate_scale_init - Initialize the rate scale table based on assoc info

The specific throughput table used is based on the type of network the associated with, including A, B, G, and G w/ TGG protection

Definition at line 911 of file 3945-rs.c.

void il3945_rs_rate_init ( struct il_priv il,
struct ieee80211_sta sta,
u8  sta_id 
)

Definition at line 335 of file 3945-rs.c.