Dear developers,
I'm using a usb Ralink RT5572 device to set up an access point. 2.4 GHz
works
without problem, but hostapd complains that it cannot select the channel I
choose in 5 GHz mode. Short question - I suspect (but see details below)
that
country code 00 is hardcoded in the chip, which prevents me from selecting
5GHz channels for AP mode. Is there a way to override the country code
setting?
Setting country code via module option to cfg80211 doesn't make hostapd
work:
# cat /etc/modprobe.d/cfg80211.conf
options cfg80211 ieee80211_regdom=NL
Detailed information:
Selected messages from hostapd suggest that the device does not obey the NL
country code:
# hostapd -dd /etc/hostapd/hostapd.conf-ra5572-5
[...]
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code 00, new country code NL
Continue interface setup after channel list update
[...]
Channel list update timeout - try to continue anyway
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
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=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
channel [11] (58) is disabled for use in AP mode, flags: 0x17b NO-IR RADAR
wlan0: IEEE 802.11 Configured channel (58) not found from the channel
list of
current mode (2) IEEE 802.11a
wlan0: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)
[...]
I've tried to set the regulatory domain manually, but it doesn't seem to
work:
# iw reg set NL
# iw reg get
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)
and:
# COUNTRY=NL crda
Failed to set regulatory domain: -7
About the device:
$ lsusb
Bus 002 Device 003: ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless
Adapter
Relevent dmesg messages:
[ 15.321971] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 5592, rev
0222
detected
[ 15.361729] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 000f detected
[ 15.368258] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 15.368888] usbcore: registered new interface driver rt2800usb
[ 18.463208] ieee80211 phy1: rt2x00lib_request_firmware: Info - Loading
firmware file 'rt2870.bin'
[ 18.470037] ieee80211 phy1: rt2x00lib_request_firmware: Info - Firmware
detected - version: 0.36
So, to repeat my question - it appears that hostapd needs to use my (NL)
regdomain to use 5GHz channels. The device supports 5GHz, but not with
country
code 00, and there seems to be no normal way to change the country code.
Can I
override the country code any other way?
Thanks,
PJBrs
_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap