OpenWrt Forum Archive

Topic: Please help - no 2.4 GHz radio

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

Please help this newbie.

Linksys EA3500
OpenWrt Designated Driver r49390
openwrt-kirkwood-linksys-audi-squashfs-factory.bin    4882432    25-Jun-2016 18:02

I can't get the 2.4 GHz radio to work.

I've read all of the threads about setting hwmode to 11g instead of 11a.  After install, I had only one wifi-device in /etc/config/wireless, so I had to create the wifi-device and the wifi-iface myself, and had already set that correctly.

While poking around, I noticed that I had no phy0 device.
Could that be the issue?


root@OpenWrt:/www# iw list
Wiphy phy1
        max # scan SSIDs: 4
        max scan IEs length: 2261 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
        Band 2:
                Capabilities: 0xff2
                        HT20/HT40
                        Static SM Power Save
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 3-streams
                        HT Delayed Block Ack
                        Max AMSDU length: 7935 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: No restriction (0x00)
                HT TX/RX MCS rate indexes supported: 0-23, 32
                Frequencies:
                        * 5180 MHz [36] (20.0 dBm)
                        * 5200 MHz [40] (20.0 dBm)
                        * 5220 MHz [44] (20.0 dBm)
                        * 5240 MHz [48] (20.0 dBm)
        valid interface combinations:
                 * #{ AP } <= 8, #{ managed } <= 1,
                   total <= 8, #channels <= 1
        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
root@OpenWrt:/www#

I also noticed that I'm missing the driver link and the ieee80211 dir in here:

root@OpenWrt:/# ls -al /sys/devices/platform/mbus/mbus:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x    4 root     root             0 Jan  1  1970 ..
-rw-r--r--    1 root     root          4096 Jun 26 18:42 broken_parity_status
-r--r--r--    1 root     root          4096 Jun 26 18:42 class
-rw-r--r--    1 root     root          4096 Jun 26 18:42 config
-r--r--r--    1 root     root          4096 Jun 26 18:42 consistent_dma_mask_bits
-r--r--r--    1 root     root          4096 Jun 26 18:42 device
-r--r--r--    1 root     root          4096 Jun 26 18:42 devspec
-r--r--r--    1 root     root          4096 Jun 26 18:42 dma_mask_bits
-rw-r--r--    1 root     root          4096 Jun 26 18:42 driver_override
-rw-r--r--    1 root     root          4096 Jun 26 18:42 enable
-r--r--r--    1 root     root          4096 Jun 26 18:42 irq
-r--r--r--    1 root     root          4096 Jun 26 18:42 local_cpulist
-r--r--r--    1 root     root          4096 Jun 26 18:42 local_cpus
-r--r--r--    1 root     root          4096 Jun 26 18:42 modalias
-rw-r--r--    1 root     root          4096 Jun 26 18:42 msi_bus
--w--w----    1 root     root          4096 Jun 26 18:42 remove
--w--w----    1 root     root          4096 Jun 26 18:42 rescan
--w-------    1 root     root          4096 Jun 26 18:42 reset
-r--r--r--    1 root     root          4096 Jun 26 18:42 resource
-rw-------    1 root     root         65536 Jun 26 18:42 resource0
-rw-------    1 root     root         65536 Jun 26 18:42 resource2
lrwxrwxrwx    1 root     root             0 Jun 26 18:42 subsystem -> ../../../../../../../bus/pci
-r--r--r--    1 root     root          4096 Jun 26 18:42 subsystem_device
-r--r--r--    1 root     root          4096 Jun 26 18:42 subsystem_vendor
-rw-r--r--    1 root     root          4096 Jun 26 18:42 uevent
-r--r--r--    1 root     root          4096 Jun 26 18:42 vendor

(Last edited by Walchr on 26 Jun 2016, 19:55)

Here's the /etc/config/wireless I'm using:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '7'
        option hwmode '11g'
        option path 'mbus/mbus:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0'
        option htmode 'HT20'
        option txpower '20'
        option country '00'

config wifi-iface
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'ssid24'
        option encryption 'psk2'
        option key 'key24'

config wifi-device 'radio1'
        option type 'mac80211'
        option channel '48'
        option hwmode '11a'
        option path 'mbus/mbus:pcie-controller/pci0000:00/0000:00:02.0/0000:02:00.0'
        option htmode 'HT40'
        option txpower '20'
        option country '00'

config wifi-iface
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'ssid5'
        option encryption 'psk2'
        option key 'key5'

Is openwrt-kirkwood-linksys-audi-squashfs-factory.bin the correct install for the Linksys EA3500?

Should there have been two wifi-devices and two wifi-ifaces in /etc/config/wireless after install?  (I had only one of each)

root@OpenWrt:/tmp/run# logread | grep radio1
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio1 (4493): command failed: Not supported (-95)
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio1 (4493): command failed: Too many open files in system (-23)
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio1 (4493): Configuration file: /var/run/hostapd-phy1.conf
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio1 (4493): wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio1 (4493): wlan1: interface state COUNTRY_UPDATE->HT_SCAN
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio1 (4493): Using interface wlan1 with hwaddr 20:aa:4b:73:95:24 and ssid "ssid5"
Wed Jun 29 09:55:31 2016 daemon.notice netifd: radio1 (4493): wlan1: interface state HT_SCAN->ENABLED
Wed Jun 29 09:55:31 2016 daemon.notice netifd: radio1 (4493): wlan1: AP-ENABLED
Wed Jun 29 09:55:41 2016 daemon.notice netifd: radio1 (4740): command failed: Not supported (-95)
Wed Jun 29 09:55:41 2016 daemon.notice netifd: radio1 (4740): Configuration file: /var/run/hostapd-phy1.conf
Wed Jun 29 09:55:41 2016 daemon.notice netifd: radio1 (4740): wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Jun 29 09:55:41 2016 daemon.notice netifd: radio1 (4740): wlan1: interface state COUNTRY_UPDATE->HT_SCAN
Wed Jun 29 09:55:41 2016 daemon.notice netifd: radio1 (4740): Using interface wlan1 with hwaddr 20:aa:4b:73:95:24 and ssid "ssid5"
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): Failed to set beacon parameters
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): wlan1: Could not connect to kernel driver
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): Interface initialization failed
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): wlan1: interface state HT_SCAN->DISABLED
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): wlan1: AP-DISABLED
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): wlan1: interface state DISABLED->DISABLED
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): wlan1: AP-DISABLED
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): hostapd_free_hapd_data: Interface wlan1 wasn't started
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): nl80211: Failed to remove interface wlan1 from bridge br-lan: No such device
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): Could not read interface wlan1 flags: No such device
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): ELOOP: remaining socket: sock=18 eloop_data=0xb6f4e530 user_data=0 handler=0x36e2c
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): ip: SIOCGIFFLAGS: No such device
Wed Jun 29 09:55:42 2016 daemon.notice netifd: radio1 (4740): Interface 0 setup failed: IFUP_ERROR
Wed Jun 29 09:55:52 2016 daemon.notice netifd: radio1 (4868): command failed: Not supported (-95)
Wed Jun 29 09:55:52 2016 daemon.notice netifd: radio1 (4868): Configuration file: /var/run/hostapd-phy1.conf
Wed Jun 29 09:55:52 2016 daemon.notice netifd: radio1 (4868): wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Jun 29 09:55:52 2016 daemon.notice netifd: radio1 (4868): wlan1: interface state COUNTRY_UPDATE->HT_SCAN
Wed Jun 29 09:55:52 2016 daemon.notice netifd: radio1 (4868): Using interface wlan1 with hwaddr 20:aa:4b:73:95:24 and ssid "ssid5"
Wed Jun 29 09:55:53 2016 daemon.notice netifd: radio1 (4868): wlan1: interface state HT_SCAN->ENABLED
Wed Jun 29 09:55:53 2016 daemon.notice netifd: radio1 (4868): wlan1: AP-ENABLED
root@OpenWrt:/tmp/run# logread | grep radio0
Wed Jun 29 09:55:29 2016 daemon.notice netifd: radio0 (4470): command failed: Not supported (-95)
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio0 (4470): Configuration file: /var/run/hostapd-phy1.conf
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio0 (4470): Interface name not specified in /var/run/hostapd-phy1.conf
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio0 (4470): : interface state UNINITIALIZED->DISABLED
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio0 (4470): : AP-DISABLED
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio0 (4470): hostapd_free_hapd_data: Interface  wasn't started
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio0 (4470): Failed to initialize interface
Wed Jun 29 09:55:30 2016 daemon.notice netifd: radio0 (4470): Device setup failed: HOSTAPD_START_FAILED
Wed Jun 29 09:55:40 2016 daemon.notice netifd: radio0 (4642): command failed: Not supported (-95)
Wed Jun 29 09:55:40 2016 daemon.notice netifd: radio0 (4642): Configuration file: /var/run/hostapd-phy1.conf
Wed Jun 29 09:55:40 2016 daemon.notice netifd: radio0 (4642): nl80211: Could not configure driver mode
Wed Jun 29 09:55:40 2016 daemon.notice netifd: radio0 (4642): nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Wed Jun 29 09:55:40 2016 daemon.notice netifd: radio0 (4642): nl80211 driver initialization failed.
Wed Jun 29 09:55:40 2016 daemon.notice netifd: radio0 (4642): wlan1: interface state UNINITIALIZED->DISABLED
Wed Jun 29 09:55:40 2016 daemon.notice netifd: radio0 (4642): wlan1: AP-DISABLED
Wed Jun 29 09:55:40 2016 daemon.notice netifd: radio0 (4642): hostapd_free_hapd_data: Interface wlan1 wasn't started
Wed Jun 29 09:55:40 2016 daemon.notice netifd: radio0 (4642): Device setup failed: HOSTAPD_START_FAILED

Interesting log messages:

Wed Jun 29 10:38:19 2016 kern.err kernel: [    9.798384] ieee80211 phy0: Cannot start firmware
Wed Jun 29 10:38:19 2016 kern.info kernel: [    9.803221] pci 0000:00:02.0: enabling device (0140 -> 0142)
Wed Jun 29 10:38:19 2016 kern.err kernel: [   10.466230] ieee80211 phy1: Command RF_ANTENNA error 0x2
Wed Jun 29 10:38:19 2016 kern.warn kernel: [   10.471583] ieee80211 phy1: failed to set # of RX antennas
Wed Jun 29 10:38:19 2016 kern.err kernel: [   10.477158] ieee80211 phy1: Command RF_ANTENNA error 0x2
Wed Jun 29 10:38:19 2016 kern.warn kernel: [   10.482500] ieee80211 phy1: failed to set # of TX antennas
Wed Jun 29 10:38:19 2016 kern.info kernel: [   10.488049] ieee80211 phy1: 88w8366 v48, 20aa4b739524, STA firmware 4.1.0.3
...
Wed Jun 29 10:38:23 2016 daemon.notice netifd: radio0 (2003): Could not find PHY for device 'radio0'
Wed Jun 29 10:38:24 2016 daemon.notice netifd: wan (2034): Sending discover...
Wed Jun 29 10:38:24 2016 daemon.notice netifd: radio0 (2046): WARNING: Variable 'data' does not exist or is not an array/object

(Last edited by Walchr on 29 Jun 2016, 12:10)

I'm running r49388 on a Linksys EA4500, so I'm very close to your setup.

In the past, some of the .bin images have been... problematic. Have you tried grabbing a more recent version (but this time using the sysupgrade image)? It could have been a bad image. Those log messages seem to indicate something failed on the install or the driver/detection.

I tried last night with
openwrt-kirkwood-linksys-audi-squashfs-sysupgrade.tar    3942400    29-Jun-2016 01:30
and got exactly the same thing.

Can I get a copy of r49388 somewhere?

Unfortunately, I didn't keep my .bin, but also my image uses Viper, not Audi. Like you, I just grab the latest trunk image.

Am I correct in assuming your router worked fine with the stock firmware? If something messed up with the initial detection and configuration, the configuration file may be preserved even between firmware updates. I'm not an expert with OpenWRT so my methods are more brute force, but I would re-flash with the stock firmware (which should completely overwrite OpenWrt), reboot, (possibly verify that both radios work), then re-flash with OpenWrt.

I just looked at the documentation (https://wiki.openwrt.org/doc/techref/sysupgrade), and there appears to be a switch to NOT preserve the confuguration file on sysupgrade:

sysupgrade -v -n /tmp/filename-of-downloaded-sysupgrade.bin

You might just try to re-flash with the -n flag.

I have an EA3500 and had used the Jun 25 build with no problems (i think i got the Luci 404, but that was it), 2.4ghz radio was present, i unfortunately didn't save mine either and have moved up to the next build, but i can say that the 2.4ghz seems to be pretty quirky on the EA3500, i haven't had the problem Walchr is having, but i've had problems while adding an interface to it both times i've tried and on different builds.

'latest builds' contain only updates from Zajec against sources for Broadcom-based devices. The last (in)significant change was 7 June 2016, an update of an e-mail address.

Unless your issue concerns a device with a Broadcom chipset, flashing nightlies is pointless.

It's not detecting the other radio:

root@OpenWrt:~# rm /etc/config/wireless
root@OpenWrt:~# wifi detect
config wifi-device  radio0
        option type     mac80211
        option channel  36
        option hwmode   11a
        option path     'mbus/mbus:pcie-controller/pci0000:00/0000:00:02.0/0000:02:00.0'
        option htmode   HT20
        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 1

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption none

@Dekker: Yes, worked fine on the stock firmware.

I looked briefly into how to revert to stock, but Linksys only provides an SSA.  How do you load an SSA without Candyhouse?

I haven't tried reverting to stock through sysupgrade, but it works fine through Luci on the factory.bin or sysupgrade.tar builds, you don't need Candyhouse. In Luci just go to the System tab and choose Backup/Flash Firmware and load the SSA there, as Dekker mentioned there's an option to keep your configs/settings so make sure that's unchecked.

The discussion might have continued from here.