Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
regulatory.h File Reference

Go to the source code of this file.

Data Structures

struct  regulatory_request
 
struct  ieee80211_freq_range
 
struct  ieee80211_power_rule
 
struct  ieee80211_reg_rule
 
struct  ieee80211_regdomain
 

Macros

#define MHZ_TO_KHZ(freq)   ((freq) * 1000)
 
#define KHZ_TO_MHZ(freq)   ((freq) / 1000)
 
#define DBI_TO_MBI(gain)   ((gain) * 100)
 
#define MBI_TO_DBI(gain)   ((gain) / 100)
 
#define DBM_TO_MBM(gain)   ((gain) * 100)
 
#define MBM_TO_DBM(gain)   ((gain) / 100)
 
#define REG_RULE(start, end, bw, gain, eirp, reg_flags)
 

Enumerations

enum  environment_cap { ENVIRON_ANY, ENVIRON_INDOOR, ENVIRON_OUTDOOR }
 

Macro Definition Documentation

#define DBI_TO_MBI (   gain)    ((gain) * 100)

Definition at line 112 of file regulatory.h.

#define DBM_TO_MBM (   gain)    ((gain) * 100)

Definition at line 114 of file regulatory.h.

#define KHZ_TO_MHZ (   freq)    ((freq) / 1000)

Definition at line 111 of file regulatory.h.

#define MBI_TO_DBI (   gain)    ((gain) / 100)

Definition at line 113 of file regulatory.h.

#define MBM_TO_DBM (   gain)    ((gain) / 100)

Definition at line 115 of file regulatory.h.

#define MHZ_TO_KHZ (   freq)    ((freq) * 1000)

Definition at line 110 of file regulatory.h.

#define REG_RULE (   start,
  end,
  bw,
  gain,
  eirp,
  reg_flags 
)
Value:
{ \
.freq_range.start_freq_khz = MHZ_TO_KHZ(start), \
.freq_range.end_freq_khz = MHZ_TO_KHZ(end), \
.freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw), \
.power_rule.max_antenna_gain = DBI_TO_MBI(gain),\
.power_rule.max_eirp = DBM_TO_MBM(eirp), \
.flags = reg_flags, \
}

Definition at line 117 of file regulatory.h.

Enumeration Type Documentation

enum environment_cap - Environment parsed from country IE : indicates country IE applies to both indoor and outdoor operation. : indicates country IE applies only to indoor operation : indicates country IE applies only to outdoor operation

Enumerator:
ENVIRON_ANY 
ENVIRON_INDOOR 
ENVIRON_OUTDOOR 

Definition at line 29 of file regulatory.h.