hostAPd operating in 5Ghz channels
#This is the kind of card and chip-set that I use:
#kernel v. 2.6.28-9
02:03.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
Subsystem: Atheros Communications Inc. Device 2096
Flags: bus master, 66MHz, medium devsel, latency 168, IRQ 17 Memory at dfdf0000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Kernel driver in use: ath9k
Kernel modules: ath9k
#This is the guide that I have use to install hostAPd:
http://wireless.erley.org/stable.html
#here it is what I can see when I launch hostAPd with the following minimal configuration:
interface=wlan1
bridge=br0
driver=nl80211
ssid=test
hw_mode=a
channel=48
ieee80211n=1
ht_capab=[HT40-][SHORT-GI-40][DSSS_CCK-40]
/etc/hostapd_minimal.conf
Opening raw packet socket for ifindex 808725760
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
nl80211: Added 802.11b mode based on 802.11g information Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=17 dBm Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=17 dBm Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=17 dBm Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=17 dBm Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
HT40: control channel: 48 secondary channel: 44 RATE[0] rate=60 flags=0x2
RATE[1] rate=90 flags=0x0
RATE[2] rate=120 flags=0x2
RATE[3] rate=180 flags=0x0
RATE[4] rate=240 flags=0x2
RATE[5] rate=360 flags=0x0
RATE[6] rate=480 flags=0x0
RATE[7] rate=540 flags=0x0
Passive scanning not supported
Flushing old station entries
Deauthenticate all stations
Mode: IEEE 802.11a Channel: 48 Frequency: 5240 MHz
#These are the channels listed by 'iw list' in 5Ghz band:
Frequencies:
* 5180 MHz [36] (17.0 dBm)
* 5200 MHz [40] (17.0 dBm)
* 5220 MHz [44] (17.0 dBm)
* 5240 MHz [48] (17.0 dBm)
* 5260 MHz [52] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5280 MHz [56] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5300 MHz [60] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5320 MHz [64] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5500 MHz [100] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5520 MHz [104] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5540 MHz [108] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5560 MHz [112] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5580 MHz [116] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5600 MHz [120] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5620 MHz [124] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5640 MHz [128] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5660 MHz [132] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5680 MHz [136] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5700 MHz [140] (20.0 dBm) (passive scanning, no IBSS, radar
detection)
* 5745 MHz [149] (disabled)
* 5765 MHz [153] (disabled)
* 5785 MHz [157] (disabled)
* 5805 MHz [161] (disabled)
* 5825 MHz [165] (disabled)
#So, from channel 52 to 140 where did they gone?
#Why hostAPd can't see them?
#Could be a country-code related problem?
#I'm not able to set it neither with 'iw reg set' or 'modbrobe cfg80211 ieee...'
#These are the frequencies that I should see and use:
country IT:
(2402 - 2482 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 20)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5710 @ 40), (N/A, 27), DFS
#In order to investigate, or, hopefully, solve this issue, what other information shall I include in my post?
Thank you
G.M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090403/f136ee9f/attachment.htm
Quoted 13 lines · Giorgio Mazzucchelli
Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=17 dBm Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=17 dBm Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=17 dBm Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=17 dBm
#These are the channels listed by 'iw list' in 5Ghz band:
Frequencies:
* 5180 MHz [36] (17.0 dBm)
* 5200 MHz [40] (17.0 dBm)
* 5220 MHz [44] (17.0 dBm)
* 5240 MHz [48] (17.0 dBm)
* 5260 MHz [52] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
...
Quoted 5 lines
* 5700 MHz [140] (20.0 dBm) (passive scanning, no IBSS,
radar detection)#So, from channel 52 to 140 where did they gone?
#Why hostAPd can't see them?
We do not currently support radar detection in ath9k which is required for these channels. Consequently, hostapd will not allow them to be enabled. In addition, those passive scanning and no IBSS flags would also prevent the channel from being used as an AP.
Review
Quoted 8 lines
#These are the frequencies that I should see and use:
country IT:
(2402 - 2482 @ 40), (N/A, 20)(quoted diff) +0
-0(5170 - 5250 @ 40), (N/A, 20) (5250 - 5330 @ 40), (N/A, 20), DFS (5490 - 5710 @ 40), (N/A, 27), DFS
That DFS there indicates the regulatory requirement for detecting radars and being able to change channels if a radar is present on the selected channel.
- Jouni
Quoted 6 lines
We do not currently support radar detection in ath9k which is required for these channels. Consequently, hostapd will not allow them to be enabled. In addition, those passive scanning and no IBSS flags would also prevent the channel from being used as an AP.
OK, so: how could someone, not from Atheros, write the code to support radar detection for Ath9k drivers?
Second:
in my case 'dmesg' says that CRDA calls and sets the US country-code, but then I can't touch it,
with the command 'iw reg set' I'm not able to set the country code that I want,
what other command, or procedure, should I use instead?
Thank you
G.M.
Quoted 5 lines · Giorgio Mazzucchelli
in my case 'dmesg' says that CRDA calls and sets the US country-code, but then I can't touch it,
with the command 'iw reg set' I'm not able to set the country code that I want,
what other command, or procedure, should I use instead?
Can you elaborate on this? Keep in mind with atheros devices this is allowing you to just comply further, you won't enable new channels. Your best bet is to leave it as is anyway unless you know you shouldn't be using a channel that your card is already programmed for and you want to help compliance.
If your card is world roaming you can also just issue a scan to see what APs are around. If an AP is found those channels will get lifted the passive scan flag or no-ibss flag -- if, and only if the card is world roaming.
Luis
Quoted 5 lines · Giorgio Mazzucchelli
in my case 'dmesg' says that CRDA calls and sets the US country-code, but then I can't touch it,
with the command 'iw reg set' I'm not able to set the country code that I want,
what other command, or procedure, should I use instead?
Please don't retell error messages and don't assume that you are doing something wrong. Please give exact commands you are using, and explain how you see that they are not working. Also please tell us where your wireless-regdb and crda come from. Is CONFIG_WIRELESS_OLD_REGULATORY enabled in your kernel configuration?
Signature · 2 lines
Regards, Pavel Roskin
Quoted 3 lines
Please don't retell error messages and don't assume that you are doing something wrong.
OK, sorry for that.
Quoted 2 lines
Please give exact commands you are using, and explain how you see that they are not working.
iw reg set IT
Frequencies:
* 5180 MHz [36] (17.0 dBm)
* 5200 MHz [40] (17.0 dBm)
* 5220 MHz [44] (17.0 dBm)
* 5240 MHz [48] (17.0 dBm)
* 5260 MHz [52] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5280 MHz [56] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5300 MHz [60] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5320 MHz [64] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5500 MHz [100] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5520 MHz [104] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5540 MHz [108] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5560 MHz [112] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5580 MHz [116] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5600 MHz [120] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5620 MHz [124] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5640 MHz [128] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5660 MHz [132] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5680 MHz [136] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5700 MHz [140] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5745 MHz [149] (disabled)
* 5765 MHz [153] (disabled)
* 5785 MHz [157] (disabled)
* 5805 MHz [161] (disabled)
* 5825 MHz [165] (disabled)
iw reg set US (or FR, DE... whatever)
prints the same frequencies listed above.
modbrobe cfg80211 ieee_regdom=IT (or US, FR, DE...) doesn't change anything.
Quoted 2 lines
Also please tell us where your
wireless-regdb and crda come from.
wireless-regdb from http://wireless.kernel.org/download/wireless-regdb
installed in this way
cd wireless-regdb-2009.mm.dd
mkdir -p /usr/lib/crda
cp regulatory.bin /usr/lib/crda/
cd ..
crda is the wireless-crda packed installed by Ubuntu alpha 6, kernel v. 2.6.28-9
Quoted 2 lines
Is
CONFIG_WIRELESS_OLD_REGULATORY
enabled in your kernel configuration?
How could I check? And set it?
Thank you
G.M.
Quoted 52 lines · Giorgio Mazzucchelli
Quoted 3 lines
Please don't retell error messages and don't assume that you are doing something wrong.
OK, sorry for that.
Quoted 2 lines
Please give exact commands you are using, and explain how you see that they are not working.
iw reg set IT
Frequencies:
* 5180 MHz [36] (17.0 dBm)
* 5200 MHz [40] (17.0 dBm)
* 5220 MHz [44] (17.0 dBm)
* 5240 MHz [48] (17.0 dBm)
* 5260 MHz [52] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5280 MHz [56] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5300 MHz [60] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5320 MHz [64] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5500 MHz [100] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5520 MHz [104] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5540 MHz [108] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5560 MHz [112] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5580 MHz [116] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5600 MHz [120] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5620 MHz [124] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5640 MHz [128] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5660 MHz [132] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5680 MHz [136] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5700 MHz [140] (20.0 dBm) (passive scanning, no IBSS,
radar detection)
* 5745 MHz [149] (disabled)
* 5765 MHz [153] (disabled)
* 5785 MHz [157] (disabled)
* 5805 MHz [161] (disabled)
* 5825 MHz [165] (disabled)
Quoted 5 lines
iw reg set US (or FR, DE... whatever)
prints the same frequencies listed above.modbrobe cfg80211 ieee_regdom=IT (or US, FR, DE...) doesn't change anything.
This is by design -- if the card has a regulatory domain set programmed into it, you won't be able to override it. So its not that its failing its more that the card already has its regulatory information properly programmed. This goes for Intel and Atheros wireless cards. Cards that have no regulatory implementations though can benefit from user input as there is none -- that accounts for the rest of the cards.
Luis