How to enable wifi simultaneous dual band on AR9220?

Hi,

after many years on IPCop and later in storage I am trying to reactivate my old ALIX2D3 board as dumb AP with a Compex WLM200NX (AR9220) miniPCI card. The card is detected and runs, but either in 2.4Ghz or 5GHz bands. I cannot get it to run in both bands at the same time.

Scanning for other networks it shows me all networks on 2.4 and 5Ghz.
But as AP it only activates one band. When I add a second network both networks will run in the same band and I cannot disassociate them.
The mPCI card only has one AR9220 chip but according to this two radios."The AR9220 supports two simultaneous traffic streams using up to two integrated transmit chains and receive chains for high throughput and range performance. "

Anyone has a hint? I could not find any promising lead in the forum on how to activate the second radio or band.

OpenWrt 19.07.10, r11427-9ce6aa9d8d

root@OpenWrt-Alix:~# uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.path='pci0000:00/0000:00:0c.0'
wireless.radio0.htmode='HT20'
wireless.radio0.channel='auto'
wireless.radio0.country='DE'
wireless.radio0.legacy_rates='0'
wireless.radio0.disabled='0'
wireless.radio0.hwmode='11a'
wireless.wifinet1=wifi-iface
wireless.wifinet1.ssid='OpenWrt'
wireless.wifinet1.device='radio0'
wireless.wifinet1.mode='ap'
wireless.wifinet1.key='snip'
wireless.wifinet1.encryption='psk2'
root@OpenWrt-Alix:~#

root@OpenWrt-Alix:~# iw list
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports AP-side u-APSD.
        Device supports T-DLS.
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
                 * outside context of a BSS
        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:
                        * 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] (20.0 dBm)
                        * 2472 MHz [13] (20.0 dBm)
                        * 2484 MHz [14] (disabled)
        Band 2:
                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] (21.0 dBm)
                        * 5200 MHz [40] (21.0 dBm)
                        * 5220 MHz [44] (21.0 dBm)
                        * 5240 MHz [48] (21.0 dBm)
                        * 5260 MHz [52] (20.0 dBm) (radar detection)
                        * 5280 MHz [56] (20.0 dBm) (radar detection)
                        * 5300 MHz [60] (20.0 dBm) (radar detection)
                        * 5320 MHz [64] (20.0 dBm) (radar detection)
                        * 5500 MHz [100] (21.0 dBm) (radar detection)
                        * 5520 MHz [104] (20.0 dBm) (radar detection)
                        * 5540 MHz [108] (20.0 dBm) (radar detection)
                        * 5560 MHz [112] (20.0 dBm) (radar detection)
                        * 5580 MHz [116] (20.0 dBm) (radar detection)
                        * 5600 MHz [120] (20.0 dBm) (radar detection)
                        * 5620 MHz [124] (20.0 dBm) (radar detection)
                        * 5640 MHz [128] (20.0 dBm) (radar detection)
                        * 5660 MHz [132] (20.0 dBm) (radar detection)
                        * 5680 MHz [136] (20.0 dBm) (radar detection)
                        * 5700 MHz [140] (20.0 dBm) (radar detection)
                        * 5745 MHz [149] (13.0 dBm)
                        * 5765 MHz [153] (13.0 dBm)
                        * 5785 MHz [157] (13.0 dBm)
                        * 5805 MHz [161] (13.0 dBm)
                        * 5825 MHz [165] (13.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1, #{ IBSS } <= 1,
                   total <= 2048, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz }

        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
        Supported extended features:
                * [ RRM ]: RRM
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs

root@OpenWrt-Alix:~# lsmod|grep ath
ath                    20480  4 ath9k,ath9k_common,ath9k_hw,ath5k
ath5k                 143360  0
ath9k                  86016  0
ath9k_common           16384  1 ath9k
ath9k_hw              331776  2 ath9k,ath9k_common
cfg80211              204800  5 ath9k,ath9k_common,ath5k,ath,mac80211
compat                 12288  5 ath9k,ath9k_common,ath5k,mac80211,cfg80211
mac80211              380928  2 ath9k,ath5k
root@OpenWrt-Alix:~# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr 00:0D:B9:20:16:E0
          inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fd49:a573:41ca::1/60 Scope:Global
          inet6 addr: fe80::20d:b9ff:fe20:16e0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36623 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45139 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7569740 (7.2 MiB)  TX bytes:25371277 (24.1 MiB)

eth0      Link encap:Ethernet  HWaddr 00:0D:B9:20:16:E0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth1      Link encap:Ethernet  HWaddr 00:0D:B9:20:16:E1
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36623 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8082462 (7.7 MiB)  TX bytes:26393515 (25.1 MiB)

eth2      Link encap:Ethernet  HWaddr 00:0D:B9:20:16:E2
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:80:48:69:9A:0C
          inet6 addr: fe80::280:48ff:fe69:9a0c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:872 (872.0 B)

root@OpenWrt-Alix:~# lspci -nnk|grep -i net -A2
lspci: Unable to load libkmod resources: error -12
00:09.0 Ethernet controller [0200]: VIA Technologies, Inc. VT6105M [Rhine-III] [1106:3053] (rev 96)
        Subsystem: VIA Technologies, Inc. Device [1106:0106]
        Kernel driver in use: via-rhine
00:0a.0 Ethernet controller [0200]: VIA Technologies, Inc. VT6105M [Rhine-III] [1106:3053] (rev 96)
        Subsystem: VIA Technologies, Inc. Device [1106:0106]
        Kernel driver in use: via-rhine
00:0b.0 Ethernet controller [0200]: VIA Technologies, Inc. VT6105M [Rhine-III] [1106:3053] (rev 96)
        Subsystem: VIA Technologies, Inc. Device [1106:0106]
        Kernel driver in use: via-rhine
00:0c.0 Network controller [0280]: Qualcomm Atheros AR922X Wireless Network Adapter [168c:0029] (rev 01)
        Subsystem: Qualcomm Atheros Compex WLM200NX / Wistron DNMA-92 [168c:2096]
        Kernel driver in use: ath9k
root@OpenWrt-Alix:~#

You can't do that, one PCI card, one radio, one channel possible (DBDC is a rather new/ still quite rare option for some new wireless chipsets, your relatively old 802.11n one isn't among those).

--> #channels <= 1
That is a hardware limitation, the card can only do 2.4 GHz XOR 5 GHz.

2 Likes

Thanks for your quick reply.
Although I had hoped somebody knew a tweak :slight_smile: