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

Go to the source code of this file.

Defines

#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)
 * Can be used for:

Define Documentation

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

Definition at line 31 of file ath_regd.c.

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

Definition at line 34 of file ath_regd.c.

#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.

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.

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.

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.

#define ATH9K_2GHZ_ALL
Value:
ATH9K_2GHZ_CH01_11, \
                                ATH9K_2GHZ_CH12_13, \
                                ATH9K_2GHZ_CH14

Definition at line 47 of file ath_regd.c.

#define ATH9K_5GHZ_ALL
Value:
ATH9K_5GHZ_5150_5350, \
                                ATH9K_5GHZ_5470_5850

Definition at line 51 of file ath_regd.c.

Value:
ATH9K_5GHZ_5150_5350, \
                                ATH9K_5GHZ_5725_5850

Definition at line 55 of file ath_regd.c.


Function Documentation

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.

References NET80211_BAND_2GHZ, NET80211_BAND_5GHZ, NO_CTL, reg_dmn_pair_mapping::reg_2ghz_ctl, reg_dmn_pair_mapping::reg_5ghz_ctl, and ath_regulatory::regpair.

Referenced by ath9k_regd_get_ctl().

{
        /* TODO Cottsay: reg */
//      if (!reg->regpair ||
//          (reg->country_code == CTRY_DEFAULT &&
//           is_wwr_sku(ath_regd_get_eepromRD(reg)))) {
//              return SD_NO_CTL;
//      }

        switch (band) {
        case NET80211_BAND_2GHZ:
                return reg->regpair->reg_2ghz_ctl;
        case NET80211_BAND_5GHZ:
                return reg->regpair->reg_5ghz_ctl;
        default:
                return NO_CTL;
        }
}