How to debug my `etc/config/wireless` file


I'm playing around with my router's wireless settings, and I changed the configurations for my radio0 device, and can't get it back to a configuration that works. Here's my current configuration:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel 'auto'
        option hwmode '11g'
        option path 'soc/soc:pcie/pci0000:00/0000:00:01.0/0000:01:00.0'
        option disabled '0'
        option log_level '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'linksys0'
        option encryption 'none'

Is there any way I can debug this? I set the log_level to 0 which is the verbose option, but where do the logs go?

My other wifi-device's work fine.
My router is: Linksys WRT 3200ACM



        option hwmode '11a'

to watch logs when you load your wifi

logread -f

if push comes to shove you can set aside the config and generate anew

mv /etc/config/wireless /tmp
wifi config
1 Like

Avoid auto channels, choose one legal in your country and out of DFS.

1 Like
option hwmode `11a` 

I changed it back to 11g to see what the logs say, and sure enough I got this:

Thu Jan 23 20:27:48 2020 user.notice mac80211: Failed command: iw phy phy0 set antenna 0xffffffff 0xffffffff
Thu Jan 23 20:27:48 2020 daemon.notice netifd: radio0 (22727): command failed: Not supported (-95)
Thu Jan 23 20:27:48 2020 user.notice mac80211: Failed command: iw phy phy0 set distance 0
Thu Jan 23 20:27:48 2020 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
Thu Jan 23 20:27:48 2020 kern.debug kernel: [ 7853.256842] ieee80211 phy0: change: 0xffffffff
Thu Jan 23 20:27:49 2020 kernel: [ 7853.362070] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Thu Jan 23 20:27:49 2020 kernel: [ 7853.369008] br-lan: port 4(wlan0) entered blocking state
Thu Jan 23 20:27:49 2020 kernel: [ 7853.374370] br-lan: port 4(wlan0) entered disabled state
Thu Jan 23 20:27:49 2020 kernel: [ 7853.379813] device wlan0 entered promiscuous mode
Thu Jan 23 20:27:49 2020 daemon.err hostapd: Hardware does not support configured mode

I'm gonna see what different hw modes are, I know that phy doesn't support 2.4G and the tutorial I was watching was looking at 2.4G so I changed it to what the tutorial had.

I'm assuming 11a vs 11g has to do with the band.

Thanks for your help!

I'm mainly experimenting at work, but would I be able to run the router in a different country than my current country? I know that certain channels are disabled with certain countries... but other than that, would I be limited by the OS?

Yes. 5 GHz radios must be set to hwmode 11a, 2.4 to 11g (11b also still exists for "leagacy" operation but that is not recommended for anyone). The htmode (for bit rates higher than 54M on n or ac hardware) is set in a separate line.

Users should always set their actual country with option country DE for example but I think the WRT3200 cannot be changed from its original country.

1 Like

rango has power table and CC come from eeprom but check PR2397

1 Like