iPXE
Macros | Functions
ath_regd.c File Reference
#include "regd.h"
#include "regd_common.h"

Go to the source code of this file.

Macros

#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

u32 ath_regd_get_band_ctl (struct ath_regulatory *reg, int band)
 

Macro Definition Documentation

◆ ATH9K_2GHZ_CH01_11

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

Definition at line 31 of file ath_regd.c.

◆ ATH9K_2GHZ_CH12_13

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

Definition at line 34 of file ath_regd.c.

◆ ATH9K_2GHZ_CH14

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

Definition at line 36 of file ath_regd.c.

◆ ATH9K_5GHZ_5150_5350

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

Definition at line 40 of file ath_regd.c.

◆ ATH9K_5GHZ_5470_5850

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

Definition at line 42 of file ath_regd.c.

◆ ATH9K_5GHZ_5725_5850

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

Definition at line 44 of file ath_regd.c.

◆ ATH9K_2GHZ_ALL

#define ATH9K_2GHZ_ALL
Value:
ATH9K_2GHZ_CH12_13, \
ATH9K_2GHZ_CH14
#define ATH9K_2GHZ_CH01_11
Definition: ath_regd.c:31

Definition at line 47 of file ath_regd.c.

◆ ATH9K_5GHZ_ALL

#define ATH9K_5GHZ_ALL
Value:
ATH9K_5GHZ_5470_5850
#define ATH9K_5GHZ_5150_5350
Definition: ath_regd.c:40

Definition at line 51 of file ath_regd.c.

◆ ATH9K_5GHZ_NO_MIDBAND

#define ATH9K_5GHZ_NO_MIDBAND
Value:
ATH9K_5GHZ_5725_5850
#define ATH9K_5GHZ_5150_5350
Definition: ath_regd.c:40

Definition at line 55 of file ath_regd.c.

Function Documentation

◆ ath_regd_get_band_ctl()

u32 ath_regd_get_band_ctl ( struct ath_regulatory reg,
int  band 
)
  • Can be used for:* Can be used by 0x63 and 0x65 */* Can be used by 0x64 only */* Can be used by 0x66 and 0x69 */* Can be used by 0x67, 0x68, 0x6A and 0x6C */* Frequency is one where radar detection is required */** Allows active scan scan on Ch 12 and 13 */* Always apply Radar/DFS rules on freq range 5260 MHz - 5700 MHz */* EEPROM country code to regpair mapping */* EEPROM rd code to regpair mapping */* Returns the map of the EEPROM set RD to a country code */*

Definition at line 584 of file ath_regd.c.

586 {
587  /* TODO Cottsay: reg */
588 // if (!reg->regpair ||
589 // (reg->country_code == CTRY_DEFAULT &&
590 // is_wwr_sku(ath_regd_get_eepromRD(reg)))) {
591 // return SD_NO_CTL;
592 // }
593 
594  switch (band) {
595  case NET80211_BAND_2GHZ:
596  return reg->regpair->reg_2ghz_ctl;
597  case NET80211_BAND_5GHZ:
598  return reg->regpair->reg_5ghz_ctl;
599  default:
600  return NO_CTL;
601  }
602 }
#define NET80211_BAND_2GHZ
The 2.4 GHz ISM band, unlicensed in most countries.
Definition: net80211.h:45
#define NET80211_BAND_5GHZ
The band from 4.9 GHz to 5.7 GHz, which tends to be more restricted.
Definition: net80211.h:47
static unsigned int unsigned int reg
Definition: intel.h:245
#define NO_CTL
Definition: eeprom.h:68

References NET80211_BAND_2GHZ, NET80211_BAND_5GHZ, NO_CTL, and reg.

Referenced by ath9k_regd_get_ctl().