You are not logged in.

#1 2012-10-05 18:24:37

axs
Member
Registered: 2009-01-23
Posts: 65
Website

AR9220 802.11an but no bgn?

I'm thoroughly confused by the output I'm getting from an AR9220 card: it claims to support 5GHz band only.

I've never heard of 5GHz single-band cards, and it was labeled abgn, and AR9220 is usually listed as abgn chip with built-in radio part.
Can anyone please take a look at the output and maybe clarify it for me or maybe point out what I'm missing here?
Is it hw limitation, firmware, or the driver?

My ultimate goal is to make it work as an AP in 2.4GHz range.
Initially the card showed domain 00 with all frequencies scan-only or disabled, but after messing with the CRDA stuff (who knew it depends on stinky udev and its helpers?) I managed to get it working in 5GHz AP mode.
But I need 2.4GHz.

iw list output:

Wiphy phy0
        Band 1:
                Capabilities: 0x11ce
                        HT20/HT40
                        SM Power Save disabled
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 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] (13.0 dBm)
                        * 5200 MHz [40] (19.0 dBm)
                        * 5220 MHz [44] (19.0 dBm)
                        * 5240 MHz [48] (19.0 dBm)
                        * 5260 MHz [52] (19.0 dBm)
                        * 5280 MHz [56] (19.0 dBm)
                        * 5300 MHz [60] (19.0 dBm)
                        * 5320 MHz [64] (20.0 dBm)
                        * 5500 MHz [100] (20.0 dBm)
                        * 5520 MHz [104] (20.0 dBm)
                        * 5540 MHz [108] (20.0 dBm)
                        * 5560 MHz [112] (20.0 dBm)
                        * 5580 MHz [116] (20.0 dBm)
                        * 5600 MHz [120] (20.0 dBm)
                        * 5620 MHz [124] (19.0 dBm)
                        * 5640 MHz [128] (19.0 dBm)
                        * 5660 MHz [132] (19.0 dBm)
                        * 5680 MHz [136] (19.0 dBm)
                        * 5700 MHz [140] (19.0 dBm)
                        * 5745 MHz [149] (20.0 dBm)
                        * 5765 MHz [153] (20.0 dBm)
                        * 5785 MHz [157] (20.0 dBm)
                        * 5805 MHz [161] (20.0 dBm)
                        * 5825 MHz [165] (20.0 dBm)
                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
        max scan IEs length: 2261 bytes
        Coverage class: 0 (up to 0m)
        Supported Ciphers:
                * WEP40 (00-0f-ac:1)
                * WEP104 (00-0f-ac:5)
                * TKIP (00-0f-ac:2)
                * CCMP (00-0f-ac:4)
                * CMAC (00-0f-ac:6)
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * WDS
                 * monitor
                 * P2P-client
                 * P2P-GO
        software interface modes (can always be added):
                 * AP/VLAN
                 * monitor
        interface combinations are not supported
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * start_ap
                 * new_station
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * remain_on_channel
                 * set_tx_bitrate_mask
                 * frame
                 * frame_wait_cancel
                 * set_wiphy_netns
                 * set_channel
                 * set_wds_peer
                 * tdls_mgmt
                 * tdls_oper
                 * probe_client
                 * set_noack_map
                 * register_beacons
                 * connect
                 * disconnect
        Supported TX frame types:
                 * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
        Supported RX frame types:
                 * IBSS: 0xd0
                 * managed: 0x40 0xd0
                 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * mesh point: 0xb0 0xc0 0xd0
                 * P2P-client: 0x40 0xd0
                 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
        Device supports RSN-IBSS.
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Device supports TX status socket option.
        Device supports HT-IBSS.

Relevant parts from kernel output:

[    0.075315] cfg80211: Calling CRDA to update world regulatory domain
[    0.078403] NetLabel: Initializing
[    0.079004] NetLabel:  domain hash size = 128
[    0.080003] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.081143] cfg80211: World regulatory domain updated:
[    0.082003] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    0.083009] cfg80211:   (2402000 KHz - 2480000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[    0.084010] cfg80211:   (5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A, 3000 mBm)
[    0.085094] NetLabel:  unlabeled traffic allowed by default

[    2.033744] ath: EEPROM regdomain: 0x0
[    2.033759] ath: EEPROM indicates default country code should be used
[    2.033776] ath: doing EEPROM country->regdmn map search
[    2.033799] ath: country maps to regdmn code: 0x3a
[    2.033815] ath: Country alpha2 being used: US
[    2.033866] ath: Regpair used: 0x3a
[    2.034143] Switching to clocksource tsc

[    2.043210] cfg80211: Updating information on frequency 5180 MHz for a 20 MHz width channel with regulatory rule:
[    2.043244] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043268] cfg80211: Updating information on frequency 5200 MHz for a 20 MHz width channel with regulatory rule:
[    2.043299] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043324] cfg80211: Updating information on frequency 5220 MHz for a 20 MHz width channel with regulatory rule:
[    2.043355] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043378] cfg80211: Updating information on frequency 5240 MHz for a 20 MHz width channel with regulatory rule:
[    2.043409] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043433] cfg80211: Updating information on frequency 5260 MHz for a 20 MHz width channel with regulatory rule:
[    2.043465] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043488] cfg80211: Updating information on frequency 5280 MHz for a 20 MHz width channel with regulatory rule:
[    2.043518] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043543] cfg80211: Updating information on frequency 5300 MHz for a 20 MHz width channel with regulatory rule:
[    2.043574] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043598] cfg80211: Updating information on frequency 5320 MHz for a 20 MHz width channel with regulatory rule:
[    2.043628] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043653] cfg80211: Updating information on frequency 5500 MHz for a 20 MHz width channel with regulatory rule:
[    2.043684] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043708] cfg80211: Updating information on frequency 5520 MHz for a 20 MHz width channel with regulatory rule:
[    2.043738] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043763] cfg80211: Updating information on frequency 5540 MHz for a 20 MHz width channel with regulatory rule:
[    2.043794] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043818] cfg80211: Updating information on frequency 5560 MHz for a 20 MHz width channel with regulatory rule:
[    2.043849] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043874] cfg80211: Updating information on frequency 5580 MHz for a 20 MHz width channel with regulatory rule:
[    2.043905] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043929] cfg80211: Updating information on frequency 5600 MHz for a 20 MHz width channel with regulatory rule:
[    2.043959] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.043984] cfg80211: Updating information on frequency 5620 MHz for a 20 MHz width channel with regulatory rule:
[    2.044049] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.044073] cfg80211: Updating information on frequency 5640 MHz for a 20 MHz width channel with regulatory rule:
[    2.044104] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.044129] cfg80211: Updating information on frequency 5660 MHz for a 20 MHz width channel with regulatory rule:
[    2.044160] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.044183] cfg80211: Updating information on frequency 5680 MHz for a 20 MHz width channel with regulatory rule:
[    2.044213] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.044238] cfg80211: Updating information on frequency 5700 MHz for a 20 MHz width channel with regulatory rule:
[    2.044269] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.044293] cfg80211: Updating information on frequency 5745 MHz for a 20 MHz width channel with regulatory rule:
[    2.044323] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.044348] cfg80211: Updating information on frequency 5765 MHz for a 20 MHz width channel with regulatory rule:
[    2.044379] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.044403] cfg80211: Updating information on frequency 5785 MHz for a 20 MHz width channel with regulatory rule:
[    2.044433] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.044458] cfg80211: Updating information on frequency 5805 MHz for a 20 MHz width channel with regulatory rule:
[    2.044489] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.044513] cfg80211: Updating information on frequency 5825 MHz for a 20 MHz width channel with regulatory rule:
[    2.044543] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.045103] ieee80211 phy0: Selected rate control algorithm 'ath9k_rate_control'
[    2.047173] cfg80211: Calling CRDA for country: US
[    2.052209] Registered led device: ath9k-phy0
[    2.052237] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xd0820000, irq=9
[    2.059065] cfg80211: Updating information on frequency 5180 MHz for a 20 MHz width channel with regulatory rule:
[    2.059097] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059124] cfg80211: Updating information on frequency 5200 MHz for a 20 MHz width channel with regulatory rule:
[    2.059154] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059177] cfg80211: Updating information on frequency 5220 MHz for a 20 MHz width channel with regulatory rule:
[    2.059207] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059232] cfg80211: Updating information on frequency 5240 MHz for a 20 MHz width channel with regulatory rule:
[    2.059262] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059286] cfg80211: Updating information on frequency 5260 MHz for a 20 MHz width channel with regulatory rule:
[    2.059316] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059341] cfg80211: Updating information on frequency 5280 MHz for a 20 MHz width channel with regulatory rule:
[    2.059371] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059394] cfg80211: Updating information on frequency 5300 MHz for a 20 MHz width channel with regulatory rule:
[    2.059424] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059449] cfg80211: Updating information on frequency 5320 MHz for a 20 MHz width channel with regulatory rule:
[    2.059480] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059504] cfg80211: Updating information on frequency 5500 MHz for a 20 MHz width channel with regulatory rule:
[    2.059534] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059559] cfg80211: Updating information on frequency 5520 MHz for a 20 MHz width channel with regulatory rule:
[    2.059589] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059613] cfg80211: Updating information on frequency 5540 MHz for a 20 MHz width channel with regulatory rule:
[    2.059643] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059668] cfg80211: Updating information on frequency 5560 MHz for a 20 MHz width channel with regulatory rule:
[    2.059698] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059722] cfg80211: Updating information on frequency 5580 MHz for a 20 MHz width channel with regulatory rule:
[    2.059752] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059777] cfg80211: Updating information on frequency 5600 MHz for a 20 MHz width channel with regulatory rule:
[    2.059807] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059830] cfg80211: Updating information on frequency 5620 MHz for a 20 MHz width channel with regulatory rule:
[    2.059860] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059885] cfg80211: Updating information on frequency 5640 MHz for a 20 MHz width channel with regulatory rule:
[    2.059916] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059940] cfg80211: Updating information on frequency 5660 MHz for a 20 MHz width channel with regulatory rule:
[    2.059970] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.059995] cfg80211: Updating information on frequency 5680 MHz for a 20 MHz width channel with regulatory rule:
[    2.060056] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.060080] cfg80211: Updating information on frequency 5700 MHz for a 20 MHz width channel with regulatory rule:
[    2.060110] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.060135] cfg80211: Updating information on frequency 5745 MHz for a 20 MHz width channel with regulatory rule:
[    2.060165] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.060189] cfg80211: Updating information on frequency 5765 MHz for a 20 MHz width channel with regulatory rule:
[    2.060219] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.060244] cfg80211: Updating information on frequency 5785 MHz for a 20 MHz width channel with regulatory rule:
[    2.060274] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.060298] cfg80211: Updating information on frequency 5805 MHz for a 20 MHz width channel with regulatory rule:
[    2.060328] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.060353] cfg80211: Updating information on frequency 5825 MHz for a 20 MHz width channel with regulatory rule:
[    2.060383] cfg80211: 5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A mBi, 3000 mBm)
[    2.060425] cfg80211: Regulatory domain changed to country: US
[    2.066296] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    2.074516] cfg80211:   (2402000 KHz - 2480000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[    2.081959] cfg80211:   (5130000 KHz - 5850000 KHz @ 40000 KHz), (N/A, 3000 mBm)

iw reg get shows domain 00 and whatever the kernel has for that domain.

iw reg set XX says repeats the same freq selection but it changes nothing in iw list or iw reg get output.
This is while the kernel is configured to use a built-in db.tx, with all-open entries for 00 and US.

hostapd complains about inability to use selected hw_mode (b or g):

Hardware does not support configured mode
wlan0: IEEE 802.11 Hardware does not support configured mode (1) (hw_mode in hostapd.conf)
Could not select hw_mode and channel. (-2)                                                
wlan0: Unable to setup interface.

Last edited by axs (2012-10-05 19:07:14)

Offline

#2 2012-10-06 02:05:26

sacamano_m82
Member
Registered: 2007-05-29
Posts: 167

Re: AR9220 802.11an but no bgn?

Yes, there are AR9220 based cards which are 5G only and it looks like you have one.

Offline

#3 2012-10-06 19:25:55

axs
Member
Registered: 2009-01-23
Posts: 65
Website

Re: AR9220 802.11an but no bgn?

Hm, yeah, you're right. Googled a bit more and found them. WLM200N5, MikroTik R5nH etc.
They all look quite differently from what I've got however, pcb-wise mine seem to match dual-band WLM200NX exactly.

Anyway, I overrode eeprom setting today and forced it into 2.4GHz mode.
Frequencies are reported, hostpad starts but I get no signal whatsoever.
So looks like it's hw problem and 2.4 was disabled for a reason.

Offline

Board footer

Powered by FluxBB