NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
OMAP Wireless Connectivity Regulatory Domain
Regulatory Domain[edit]
The 802.11 specification as regulatory domains defines the different parameters for antenna gain, transmit power, channel selection, and so on that must be followed.
And there are three major regulatory bodies exercise authority over the majority countries in the world and they are FCC, ETSI and TELEC.
The regulatory domains are as follows:
Regulatory Domain | Geographic Area |
---|---|
FCC | North America, South America, Central America, Australia, New Zealand, various parts of Asia |
ETSI | Europe, Middle East, Africa, various parts of Asia |
TELEC | Japan |
In order to control the Regulatory Domain we use 2 IW commands:
Regulatory Domain | Geographic Area |
---|---|
iw reg get | getting the current Regulatory Domain setting |
iw reg set CountryID | enabling the Regulatory Domain for specific Country |
Station Mode[edit]
At the beginning the Regulatory domain is not initiated and if we get the Reg domain configuration we will get default value
root@am37x-evm:~# iw reg get
we Get:
country 00: (2402 - 2472 @ 40), (3, 20) (2457 - 2482 @ 20), (3, 20), PASSIVE-SCAN, NO-IBSS (2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS (5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS (5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
Following is an example were we set the Regulatory Domain to fit United State (US)
root@am37x-evm:~# iw reg set US
And we get the United State Regulatory Domain configuration
[ 53.413818] cfg80211: Calling CRDA for country: US root@am37x-evm:~# [ 53.435516] cfg80211: Regulatory domain changed to country: US [ 53.441650] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 53.450469] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm) [ 53.458770] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm) [ 53.467102] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 53.475402] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 53.483734] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 53.492034] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
Now in case we request to verify the current Regulatory Domain setting we get, that it is the US, and the list of the Regulatory Doamin parameters.
root@am37x-evm:~# iw reg get country US: (2402 - 2472 @ 40), (3, 27) (5170 - 5250 @ 40), (3, 17) (5250 - 5330 @ 40), (3, 20), DFS (5490 - 5600 @ 40), (3, 20), DFS (5650 - 5710 @ 40), (3, 20), DFS (5735 - 5835 @ 40), (3, 30)
The parameters meaning for the line: (2402 - 2472 @ 40), (3, 27) is as follows:
- The Starting frequency is 2402Mhz
- The End frequency is 2472Mhz
- Bandwidth of each channel is 40Mhz
- Maximum Antenna gain is 300mBi
- Maximum EIRP (Equivalent isotropically radiated power) is 2700 mBm
SoftAP mode[edit]
- iw reg set US
- iw reg get (to make sure you get US here)
- in hostapd.conf put these:
ieee80211d=1 country_code=US
- start hostapd.
External Link[edit]
For more information follow the link:
- <Reg Domain (Linux wireless)>
- <What is Regulatory Domain (Linux wireless)>
- Country Codes list for command: "iw reg set <Country Codes>"