Country settings no honored
Hello
I try to enable channel 12 and 13 for reg domain AR which are allowed
here for ath5k and WLM54AGP23 (168c:001b) card.
I have enabled this in the regdomain binary and installed it with my
public key in /lib/crda.
I have also tried orig regdomain...
Kernel is 3.0.0, distribution debian-6.0
Country is set with hostapd, because iw reg set does not work...
Output is the following
[ 7.453516] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 7.453616] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 7.474621] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz),
(300 mBi, 2000 mBm)
[ 7.498654] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz),
(300 mBi, 2000 mBm)
[ 7.525638] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 7.554621] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 8.295351] cfg80211: Calling CRDA for country: US
[ 8.297104] ath5k phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x61)
[ 8.298572] ath5k 0000:00:0e.0: registered as 'phy1'
[ 8.370951] cfg80211: Regulatory domain changed to country: US
[ 8.371495] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 8.372565] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz),
(300 mBi, 2700 mBm)
[ 8.377458] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz),
(300 mBi, 1700 mBm)
[ 8.379754] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 8.380534] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 8.388459] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 8.390220] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz),
(300 mBi, 3000 mBm)
[ 9.147424] ath5k phy1: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x61)
....
[ 14.488129] cfg80211: Calling CRDA for country: AR
[ 14.608818] cfg80211: Regulatory domain changed to country: AR
[ 14.618512] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 14.619584] cfg80211: (2402000 KHz - 2494000 KHz @ 40000 KHz),
(N/A, 3000 mBm)
But the channels and power seems to be still from country US which was
set at startup because
iw phy0 info gives the following output:
Wiphy phy0
Band 1:
Frequencies:
* 2412 MHz [1] (27.0 dBm)
* 2417 MHz [2] (27.0 dBm)
* 2422 MHz [3] (27.0 dBm)
* 2427 MHz [4] (27.0 dBm)
* 2432 MHz [5] (27.0 dBm)
* 2437 MHz [6] (27.0 dBm)
* 2442 MHz [7] (27.0 dBm)
* 2447 MHz [8] (27.0 dBm)
* 2452 MHz [9] (27.0 dBm)
* 2457 MHz [10] (27.0 dBm)
* 2462 MHz [11] (27.0 dBm)
* 2467 MHz [12] (disabled)
* 2472 MHz [13] (disabled)
* 2484 MHz [14] (disabled)
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
So what's wrong that channels are not set right? With madwifi driver it
worked to set the channels at least of JP.
If you set country JP with the orig regdomain database it's the same
stuff channel 12-14 are not enabled.
It's seems that the card or what ever stores the first set country which
is per default US at startup...
How can I set at startup the country?
I created file
/etc/modprobe.d/cfg80211.conf
with
then the output is as follows (first set to JP after that someone set it
to US and mi hostapd config has too JP...)
Waiting for /dev to be fully populated...[ 7.370263] cfg80211: World
regulatory domain updated:
[ 7.376450] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 7.377540] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 7.422579] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz),
(300 mBi, 2000 mBm)
[ 7.439165] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz),
(300 mBi, 2000 mBm)
[ 7.448689] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 7.470357] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 7.477181] cfg80211: Calling CRDA for country: JP
[ 7.653563] cfg80211: Regulatory domain changed to country: JP
[ 7.655098] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 7.656166] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
[ 7.660379] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz),
(N/A, 2000 mBm)
[ 7.662099] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz),
(N/A, 2000 mBm)
[ 7.662824] cfg80211: (4910000 KHz - 4930000 KHz @ 10000 KHz),
(N/A, 2300 mBm)
[ 7.667378] cfg80211: (4910000 KHz - 4990000 KHz @ 40000 KHz),
(N/A, 2300 mBm)
[ 7.671834] cfg80211: (4930000 KHz - 4950000 KHz @ 10000 KHz),
(N/A, 2300 mBm)
[ 7.672560] cfg80211: (5030000 KHz - 5045000 KHz @ 10000 KHz),
(N/A, 2300 mBm)
[ 7.674333] cfg80211: (5030000 KHz - 5090000 KHz @ 40000 KHz),
(N/A, 2300 mBm)
[ 7.678376] cfg80211: (5050000 KHz - 5060000 KHz @ 10000 KHz),
(N/A, 2300 mBm)
[ 7.680111] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
[ 7.680835] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
[ 7.685375] cfg80211: (5490000 KHz - 5710000 KHz @ 40000 KHz),
(N/A, 2300 mBm)
[ 8.272147] cfg80211: Calling CRDA for country: US
[ 8.273895] ath5k phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x61)
[ 8.275362] ath5k 0000:00:0e.0: registered as 'phy1'
[ 8.348205] cfg80211: Current regulatory domain intersected:
[ 8.349210] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 8.350192] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
[ 8.354274] cfg80211: (2457000 KHz - 2472000 KHz @ 15000 KHz),
(N/A, 2000 mBm)
[ 8.355997] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz),
(N/A, 1700 mBm)
[ 8.356722] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
[ 8.361272] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
[ 8.362996] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
[ 9.120072] cfg80211: Calling CRDA for country: US
[ 9.128247] ath5k phy1: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x61)
[ 9.305179] cfg80211: Current regulatory domain intersected:
[ 9.311299] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 9.312393] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
[ 9.322153] cfg80211: (2457000 KHz - 2472000 KHz @ 15000 KHz),
(N/A, 2000 mBm)
[ 9.326159] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz),
(N/A, 1700 mBm)
[ 9.327883] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
[ 9.334162] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
[ 9.335904] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz),
(N/A, 2000 mBm)
done.
....
[ 17.687881] cfg80211: Calling CRDA to update world regulatory domain
[ 17.768934] cfg80211: World regulatory domain updated:
[ 17.770411] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 17.771517] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 17.774193] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz),
(300 mBi, 2000 mBm)
[ 17.775206] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz),
(300 mBi, 2000 mBm)
[ 17.775991] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 17.777904] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[ 17.788909] cfg80211: Calling CRDA for country: 97
Don't know why country 97 is tried. hostap has JP in config file too...
Thanks for any help
Beat