OpenWrt Forum Archive

Topic: DIR-825, ath9x - available wifi channels

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

according to http://de.wikipedia.org/wiki/IEEE_802.11#802.11a and http://en.wikipedia.org/wiki/List_of_WLAN_channels the available channels in the 5GHz band for germany (country code: DE) should be:
channel 36 to 140 for general use
and channel 155 to 177 for Fixed Broadband Wireless Access.

But when I call "iw list" the channels 120-128 are still disabled.

...and for 2,4 GHz only channels 1-11 are enabled, channels 12-13 are disabled/missing.

I've set country code to "DE".


root@OpenWrt:~# iw list
Wiphy phy1
        Band 1:
                Capabilities: 0x104e
                        HT20/HT40
                        SM Power Save disabled
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 7935 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-15
                Frequencies:
                        * 5180 MHz [36] (17.0 dBm) (radar detection)
                        * 5200 MHz [40] (17.0 dBm) (radar detection)
                        * 5220 MHz [44] (17.0 dBm) (radar detection)
                        * 5240 MHz [48] (17.0 dBm) (radar detection)
                        * 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] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 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)
                Bitrates (non-HT):
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
        max # scan SSIDs: 4
        Coverage class: 0 (up to 0m)
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * new_beacon
                 * new_station
                 * new_mpath
                 * set_mesh_params
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * (null)
                 * (null)
                 * Unknown command (59)
                 * set_wiphy_netns
                 * connect
                 * disconnect
Wiphy phy0
        Band 1:
                Capabilities: 0x104e
                        HT20/HT40
                        SM Power Save disabled
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 7935 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-15
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.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
        max # scan SSIDs: 4
        Coverage class: 0 (up to 0m)
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * new_beacon
                 * new_station
                 * new_mpath
                 * set_mesh_params
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * (null)
                 * (null)
                 * Unknown command (59)
                 * set_wiphy_netns
                 * connect
                 * disconnect

in dmesg i read:

cfg80211: Calling CRDA to update world regulatory domain
ar71xx: pll_reg 0xb8050014: 0x1099
eth1: link up (100Mbps/Full duplex)
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
PCI: Enabling device 0000:00:11.0 (0000 -> 0002)
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
phy0: Selected rate control algorithm 'ath9k_rate_control'
Registered led device: ath9k-phy0::radio
Registered led device: ath9k-phy0::assoc
Registered led device: ath9k-phy0::tx
Registered led device: ath9k-phy0::rx
phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=48
PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
phy1: Selected rate control algorithm 'ath9k_rate_control'
Registered led device: ath9k-phy1::radio
Registered led device: ath9k-phy1::assoc
Registered led device: ath9k-phy1::tx
Registered led device: ath9k-phy1::rx
phy1: Atheros AR9280 Rev:2 mem=0xb0010000, irq=49
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (968 buckets, 3872 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
cfg80211: Calling CRDA for country: DE
cfg80211: Regulatory domain changed to country: DE
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm)
    (5150000 KHz - 5350000 KHz @ 40000 KHz), (N/A, 2000 mBm)
    (5470000 KHz - 5725000 KHz @ 40000 KHz), (N/A, 2698 mBm)

How can this be fixed?


many regards, zoo

(Last edited by zoo on 7 May 2010, 07:47)

http://de.wikipedia.org/wiki/Dynamic_Fr … _Selection

you can only use channel 36-48 without DFS in Germany, you will need DFS for channel 52-64 and 100-140.
as DFS is not implemented in ath9k (mac80211) the channels 120-128 will be still unusable with ath9k even if you figure out how to "enable" them.
so I would recommend this order to solve your problem: 
Code a DFS-Implementation for ath9k and if this is completed, care about channel 120-128   smile 
I guess for now we are stuck on channel 36-48

OK, DFS is not supported yet, but channel 52-64, 100-140 are not disabled, only channel 120-128 are disabled.
And also channel 12 and 13 are disabled, which should work. Why?

take a look at this tread: https://forum.openwrt.org/viewtopic.php?pid=100450

The regdomain in the EEPROM of your wificard is US. Your actual settings as shown in "iw list" is the most restricted combination of regdomain US and DE.

ath9k needs to be compiled with the option "Force Atheros driver to respect user's regdomain setting", to ignore the EEPROM-regdomain.

and you should give it a try, so that you can use channel 36-48 with 20dBm, which is allowed in germany instead of only 17dBm (US-restriction)

eleon216 wrote:

take a look at this tread: https://forum.openwrt.org/viewtopic.php?pid=100450

The regdomain in the EEPROM of your wificard is US. Your actual settings as shown in "iw list" is the most restricted combination of regdomain US and DE.

ath9k needs to be compiled with the option "Force Atheros driver to respect user's regdomain setting", to ignore the EEPROM-regdomain.

and you should give it a try, so that you can use channel 36-48 with 20dBm, which is allowed in germany instead of only 17dBm (US-restriction)

I wonder instead of compiling again myself, what is the official AA 12.09 version's default?

Anyone knows? Setting the region to CN or JP in web gui doesn't bring the channel 12,13 or 14 up.

Channel 14 is only allowed in 11b mode, even in japan. 12 and 13 can be unlocked with reghack.

jow wrote:

Channel 14 is only allowed in 11b mode, even in japan. 12 and 13 can be unlocked with reghack.

yeah, I know, after hack, everything works all right? Any strange behavior? Openwrt is something that you changed one thing, sometime unpreditabel behavior lurks around, hard to find.

neryba wrote:

did you tried reghack?
http://luci.subsignal.org/~jow/reghack/README.txt

this maybe the last resort.
I am wondering if there is other solution before :

make menuconfig and  in Kernel modules/Wireless drivers/kmod-ath----> you have to check "force Atheros drivers to respect user's regdomain settings".

anyone help?

The discussion might have continued from here.