Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
rate.c File Reference
#include <brcmu_wifi.h>
#include <brcmu_utils.h>
#include "d11.h"
#include "pub.h"
#include "rate.h"

Go to the source code of this file.

Data Structures

struct  legacy_phycfg
 

Macros

#define LEGACY_PHYCFG_TABLE_SIZE   12
 

Functions

void brcms_c_rateset_mcs_upd (struct brcms_c_rateset *rs, u8 txstreams)
 
bool brcms_c_rate_hwrs_filter_sort_validate (struct brcms_c_rateset *rs, const struct brcms_c_rateset *hw_rs, bool check_brate, u8 txstreams)
 
u32 brcms_c_compute_rspec (struct d11rxhdr *rxh, u8 *plcp)
 
void brcms_c_rateset_copy (const struct brcms_c_rateset *src, struct brcms_c_rateset *dst)
 
void brcms_c_rateset_filter (struct brcms_c_rateset *src, struct brcms_c_rateset *dst, bool basic_only, u8 rates, uint xmask, bool mcsallow)
 
void brcms_c_rateset_default (struct brcms_c_rateset *rs_tgt, const struct brcms_c_rateset *rs_hw, uint phy_type, int bandtype, bool cck_only, uint rate_mask, bool mcsallow, u8 bw, u8 txstreams)
 
s16 brcms_c_rate_legacy_phyctl (uint rate)
 
void brcms_c_rateset_mcs_clear (struct brcms_c_rateset *rateset)
 
void brcms_c_rateset_mcs_build (struct brcms_c_rateset *rateset, u8 txstreams)
 
void brcms_c_rateset_bw_mcs_filter (struct brcms_c_rateset *rateset, u8 bw)
 

Variables

const u8 rate_info [BRCM_MAXRATE+1]
 
struct brcms_mcs_info mcs_table [MCS_TABLE_SIZE]
 
struct brcms_c_rateset cck_ofdm_mimo_rates
 
struct brcms_c_rateset ofdm_mimo_rates
 
struct brcms_c_rateset cck_ofdm_rates
 
struct brcms_c_rateset gphy_legacy_rates
 
struct brcms_c_rateset ofdm_rates
 
struct brcms_c_rateset cck_rates
 

Macro Definition Documentation

#define LEGACY_PHYCFG_TABLE_SIZE   12

Definition at line 157 of file rate.c.

Function Documentation

u32 brcms_c_compute_rspec ( struct d11rxhdr rxh,
u8 plcp 
)

Definition at line 343 of file rate.c.

bool brcms_c_rate_hwrs_filter_sort_validate ( struct brcms_c_rateset rs,
const struct brcms_c_rateset hw_rs,
bool  check_brate,
u8  txstreams 
)

Definition at line 302 of file rate.c.

s16 brcms_c_rate_legacy_phyctl ( uint  rate)

Definition at line 484 of file rate.c.

void brcms_c_rateset_bw_mcs_filter ( struct brcms_c_rateset rateset,
u8  bw 
)

Definition at line 508 of file rate.c.

void brcms_c_rateset_copy ( const struct brcms_c_rateset src,
struct brcms_c_rateset dst 
)

Definition at line 392 of file rate.c.

void brcms_c_rateset_default ( struct brcms_c_rateset rs_tgt,
const struct brcms_c_rateset rs_hw,
uint  phy_type,
int  bandtype,
bool  cck_only,
uint  rate_mask,
bool  mcsallow,
u8  bw,
u8  txstreams 
)

Definition at line 441 of file rate.c.

void brcms_c_rateset_filter ( struct brcms_c_rateset src,
struct brcms_c_rateset dst,
bool  basic_only,
u8  rates,
uint  xmask,
bool  mcsallow 
)

Definition at line 408 of file rate.c.

void brcms_c_rateset_mcs_build ( struct brcms_c_rateset rateset,
u8  txstreams 
)

Definition at line 501 of file rate.c.

void brcms_c_rateset_mcs_clear ( struct brcms_c_rateset rateset)

Definition at line 494 of file rate.c.

void brcms_c_rateset_mcs_upd ( struct brcms_c_rateset rs,
u8  txstreams 
)

Definition at line 290 of file rate.c.

Variable Documentation

struct brcms_c_rateset cck_ofdm_mimo_rates
Initial value:
= {
12,
{ 0x82, 0x84, 0x8b, 0x0c, 0x12, 0x96, 0x18, 0x24, 0x30, 0x48, 0x60,
0x6c},
0x00,
{ 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
}

Definition at line 190 of file rate.c.

struct brcms_c_rateset cck_ofdm_rates
Initial value:
= {
12,
{ 0x82, 0x84, 0x8b, 0x0c, 0x12, 0x96, 0x18, 0x24, 0x30, 0x48, 0x60,
0x6c},
0x00,
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
}

Definition at line 231 of file rate.c.

Initial value:
= {
4,
{ 0x82, 0x84, 0x0b, 0x16},
0x00,
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
}

Definition at line 260 of file rate.c.

struct brcms_c_rateset gphy_legacy_rates
Initial value:
= {
4,
{ 0x82, 0x84, 0x8b, 0x96},
0x00,
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
}

Definition at line 242 of file rate.c.

Definition at line 44 of file rate.c.

struct brcms_c_rateset ofdm_mimo_rates
Initial value:
= {
8,
{ 0x8c, 0x12, 0x98, 0x24, 0xb0, 0x48, 0x60, 0x6c},
0x00,
{ 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
}

Definition at line 201 of file rate.c.

struct brcms_c_rateset ofdm_rates
Initial value:
= {
8,
{ 0x8c, 0x12, 0x98, 0x24, 0xb0, 0x48, 0x60, 0x6c},
0x00,
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00}
}

Definition at line 251 of file rate.c.

Initial value:
= {
0x00, 0x00, 0x0a, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x37, 0x8b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8f, 0x00,
0x00, 0x00, 0x6e, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x89, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x8d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c
}

Definition at line 28 of file rate.c.