Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
channel.c File Reference
#include <linux/types.h>
#include <net/cfg80211.h>
#include <net/mac80211.h>
#include <net/regulatory.h>
#include <defs.h>
#include "pub.h"
#include "phy/phy_hal.h"
#include "main.h"
#include "stf.h"
#include "channel.h"
#include "mac80211_if.h"

Go to the source code of this file.

Data Structures

struct  locale_mimo_info
 
struct  country_info
 
struct  brcms_regd
 
struct  brcms_cm_info
 

Macros

#define QDB(n)   ((n) * BRCMS_TXPWR_DB_FACTOR)
 
#define LOCALE_MIMO_IDX_bn   0
 
#define LOCALE_MIMO_IDX_11n   0
 
#define BRCMS_MAXPWR_MIMO_TBL_SIZE   14
 
#define BAND_5G_PWR_LVLS   5 /* 5 power levels for 5G */
 
#define LC(id)   LOCALE_MIMO_IDX_ ## id
 
#define LOCALES(mimo2, mimo5)   {LC(mimo2), LC(mimo5)}
 
#define CHANNEL_POWER_IDX_5G(c)
 
#define BRCM_2GHZ_2412_2462   REG_RULE(2412-10, 2462+10, 40, 0, 19, 0)
 
#define BRCM_2GHZ_2467_2472
 
#define BRCM_5GHZ_5180_5240
 
#define BRCM_5GHZ_5260_5320
 
#define BRCM_5GHZ_5500_5700
 
#define BRCM_5GHZ_5745_5825
 

Functions

struct brcms_cm_infobrcms_c_channel_mgr_attach (struct brcms_c_info *wlc)
 
void brcms_c_channel_mgr_detach (struct brcms_cm_info *wlc_cm)
 
void brcms_c_channel_set_chanspec (struct brcms_cm_info *wlc_cm, u16 chanspec, u8 local_constraint_qdbm)
 
void brcms_c_channel_reg_limits (struct brcms_cm_info *wlc_cm, u16 chanspec, struct txpwr_limits *txpwr)
 
bool brcms_c_valid_chanspec_db (struct brcms_cm_info *wlc_cm, u16 chspec)
 
void brcms_c_regd_init (struct brcms_c_info *wlc)
 

Macro Definition Documentation

#define BAND_5G_PWR_LVLS   5 /* 5 power levels for 5G */

Definition at line 46 of file channel.c.

#define BRCM_2GHZ_2412_2462   REG_RULE(2412-10, 2462+10, 40, 0, 19, 0)

Definition at line 59 of file channel.c.

#define BRCM_2GHZ_2467_2472
Value:
REG_RULE(2467-10, 2472+10, 20, 0, 19, \

Definition at line 60 of file channel.c.

#define BRCM_5GHZ_5180_5240
Value:
REG_RULE(5180-10, 5240+10, 40, 0, 21, \

Definition at line 64 of file channel.c.

#define BRCM_5GHZ_5260_5320
Value:
REG_RULE(5260-10, 5320+10, 40, 0, 21, \

Definition at line 67 of file channel.c.

#define BRCM_5GHZ_5500_5700
Value:
REG_RULE(5500-10, 5700+10, 40, 0, 21, \

Definition at line 71 of file channel.c.

#define BRCM_5GHZ_5745_5825
Value:
REG_RULE(5745-10, 5825+10, 40, 0, 21, \

Definition at line 75 of file channel.c.

#define BRCMS_MAXPWR_MIMO_TBL_SIZE   14

Definition at line 37 of file channel.c.

#define CHANNEL_POWER_IDX_5G (   c)
Value:
(((c) < 52) ? 0 : \
(((c) < 62) ? 1 : \
(((c) < 100) ? 2 : \
(((c) < 149) ? 3 : 4))))

Definition at line 54 of file channel.c.

#define LC (   id)    LOCALE_MIMO_IDX_ ## id

Definition at line 48 of file channel.c.

#define LOCALE_MIMO_IDX_11n   0

Definition at line 34 of file channel.c.

#define LOCALE_MIMO_IDX_bn   0

Definition at line 33 of file channel.c.

#define LOCALES (   mimo2,
  mimo5 
)    {LC(mimo2), LC(mimo5)}

Definition at line 50 of file channel.c.

#define QDB (   n)    ((n) * BRCMS_TXPWR_DB_FACTOR)

Definition at line 31 of file channel.c.

Function Documentation

struct brcms_cm_info* brcms_c_channel_mgr_attach ( struct brcms_c_info wlc)
read

Definition at line 331 of file channel.c.

void brcms_c_channel_mgr_detach ( struct brcms_cm_info wlc_cm)

Definition at line 374 of file channel.c.

void brcms_c_channel_reg_limits ( struct brcms_cm_info wlc_cm,
u16  chanspec,
struct txpwr_limits txpwr 
)

Definition at line 405 of file channel.c.

void brcms_c_channel_set_chanspec ( struct brcms_cm_info wlc_cm,
u16  chanspec,
u8  local_constraint_qdbm 
)

Definition at line 380 of file channel.c.

void brcms_c_regd_init ( struct brcms_c_info wlc)

Definition at line 752 of file channel.c.

bool brcms_c_valid_chanspec_db ( struct brcms_cm_info wlc_cm,
u16  chspec 
)

Definition at line 630 of file channel.c.