Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
regd.c File Reference
#include <linux/kernel.h>
#include <linux/export.h>
#include <net/cfg80211.h>
#include <net/mac80211.h>
#include "regd.h"
#include "regd_common.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define ATH9K_2GHZ_CH01_11   REG_RULE(2412-10, 2462+10, 40, 0, 20, 0)
 
#define ATH9K_2GHZ_CH12_13
 
#define ATH9K_2GHZ_CH14
 
#define ATH9K_5GHZ_5150_5350
 
#define ATH9K_5GHZ_5470_5850
 
#define ATH9K_5GHZ_5725_5850
 
#define ATH9K_2GHZ_ALL
 
#define ATH9K_5GHZ_ALL
 
#define ATH9K_5GHZ_NO_MIDBAND
 

Functions

bool ath_is_world_regd (struct ath_regulatory *reg)
 
 EXPORT_SYMBOL (ath_is_world_regd)
 
bool ath_is_49ghz_allowed (u16 regdomain)
 
 EXPORT_SYMBOL (ath_is_49ghz_allowed)
 
int ath_reg_notifier_apply (struct wiphy *wiphy, struct regulatory_request *request, struct ath_regulatory *reg)
 
 EXPORT_SYMBOL (ath_reg_notifier_apply)
 
int ath_regd_init (struct ath_regulatory *reg, struct wiphy *wiphy, int(*reg_notifier)(struct wiphy *wiphy, struct regulatory_request *request))
 
 EXPORT_SYMBOL (ath_regd_init)
 
u32 ath_regd_get_band_ctl (struct ath_regulatory *reg, enum ieee80211_band band)
 
 EXPORT_SYMBOL (ath_regd_get_band_ctl)
 

Macro Definition Documentation

#define ATH9K_2GHZ_ALL
Value:
ATH9K_2GHZ_CH12_13, \
ATH9K_2GHZ_CH14

Definition at line 52 of file regd.c.

#define ATH9K_2GHZ_CH01_11   REG_RULE(2412-10, 2462+10, 40, 0, 20, 0)

Definition at line 36 of file regd.c.

#define ATH9K_2GHZ_CH12_13
Value:
REG_RULE(2467-10, 2472+10, 40, 0, 20,\

Definition at line 39 of file regd.c.

#define ATH9K_2GHZ_CH14
Value:
REG_RULE(2484-10, 2484+10, 40, 0, 20,\

Definition at line 41 of file regd.c.

#define ATH9K_5GHZ_5150_5350
Value:
REG_RULE(5150-10, 5350+10, 40, 0, 30,\

Definition at line 45 of file regd.c.

#define ATH9K_5GHZ_5470_5850
Value:
REG_RULE(5470-10, 5850+10, 40, 0, 30,\

Definition at line 47 of file regd.c.

#define ATH9K_5GHZ_5725_5850
Value:
REG_RULE(5725-10, 5850+10, 40, 0, 30,\

Definition at line 49 of file regd.c.

#define ATH9K_5GHZ_ALL
Value:
ATH9K_5GHZ_5470_5850

Definition at line 56 of file regd.c.

#define ATH9K_5GHZ_NO_MIDBAND
Value:
ATH9K_5GHZ_5725_5850

Definition at line 60 of file regd.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 17 of file regd.c.

Function Documentation

bool ath_is_49ghz_allowed ( u16  regdomain)

Definition at line 167 of file regd.c.

bool ath_is_world_regd ( struct ath_regulatory reg)

Definition at line 128 of file regd.c.

int ath_reg_notifier_apply ( struct wiphy wiphy,
struct regulatory_request request,
struct ath_regulatory reg 
)

Definition at line 366 of file regd.c.

u32 ath_regd_get_band_ctl ( struct ath_regulatory reg,
enum ieee80211_band  band 
)

Definition at line 652 of file regd.c.

int ath_regd_init ( struct ath_regulatory reg,
struct wiphy wiphy,
int(*)(struct wiphy *wiphy, struct regulatory_request *request reg_notifier 
)

Definition at line 629 of file regd.c.

EXPORT_SYMBOL ( ath_is_world_regd  )
EXPORT_SYMBOL ( ath_is_49ghz_allowed  )
EXPORT_SYMBOL ( ath_reg_notifier_apply  )
EXPORT_SYMBOL ( ath_regd_init  )
EXPORT_SYMBOL ( ath_regd_get_band_ctl  )