Linux Kernel
3.7.1
|
#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 "common.h"
#include "4965.h"
Go to the source code of this file.
Macros | |
#define | IL4965_RS_NAME "iwl-4965-rs" |
#define | NUM_TRY_BEFORE_ANT_TOGGLE 1 |
#define | IL_NUMBER_TRY 1 |
#define | IL_HT_NUMBER_TRY 3 |
#define | RATE_MAX_WINDOW 62 /* # tx in history win */ |
#define | RATE_MIN_FAILURE_TH 6 /* min failures to calc tpt */ |
#define | RATE_MIN_SUCCESS_TH 8 /* min successes to calc tpt */ |
#define | IL_MISSED_RATE_MAX 15 |
#define | RATE_SCALE_FLUSH_INTVL (3*HZ) |
#define | IL_DECLARE_RATE_INFO(r, s, ip, in, rp, rn, pp, np) |
#define | MCS_IDX_PER_STREAM (8) |
Functions | |
void | il4965_rs_rate_init (struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id) |
int | il4965_rate_control_register (void) |
void | il4965_rate_control_unregister (void) |
Variables | |
struct il_rate_info | il_rates [RATE_COUNT] |
#define RATE_MIN_FAILURE_TH 6 /* min failures to calc tpt */ |
#define RATE_MIN_SUCCESS_TH 8 /* min successes to calc tpt */ |
il_rate_control_register - Register the rate control algorithm callbacks
Since the rate control algorithm is hardware specific, there is no need or reason to place it as a stand alone module. The driver can call il_rate_control_register in order to register the rate control callbacks with the mac80211 subsystem. This should be performed prior to calling ieee80211_register_hw
struct il_rate_info il_rates[RATE_COUNT] |