Wireless doesnt start up with router. Please help

Of recent whenever my router boots up the wireless don't startup. I think it might have something to do with having very little free space left for making changes in LuCi but I reflashed the router and now I have 897KB free but the problem still persists. Please can anyone help me solve this?

TP-Link WR-840N v4 running OpenWrt 21.02.1 r16325-88151b8303

Tue Dec 28 04:35:38 2021 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Tue Dec 28 04:35:38 2021 daemon.err hostapd: Line 43: unknown configuration item 'snoop_iface'
Tue Dec 28 04:35:38 2021 daemon.err hostapd: Line 52: unknown configuration item 'vlan_no_bridge'
Tue Dec 28 04:35:38 2021 daemon.err hostapd: Line 54: unknown configuration item 'qos_map_set'
Tue Dec 28 04:35:38 2021 daemon.err hostapd: 3 errors found in configuration file '/var/run/hostapd-phy0.conf'
Tue Dec 28 04:35:38 2021 daemon.err hostapd: Failed to set up interface with /var/run/hostapd-phy0.conf
Tue Dec 28 04:35:38 2021 daemon.notice netifd: radio0 (7874): Command failed: Invalid argument
Tue Dec 28 04:35:38 2021 daemon.notice netifd: radio0 (7874): Device setup failed: HOSTAPD_START_FAILED
Tue Dec 28 04:35:38 2021 daemon.notice netifd: Wireless device 'radio0' set retry=0
Tue Dec 28 04:35:38 2021 daemon.crit netifd: Wireless device 'radio0' setup failed, retry=0
Tue Dec 28 04:35:38 2021 daemon.notice netifd: Wireless device 'radio0' is now down

These errors suggest that you have invalid stuff inside your configuration file.

Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

cat /etc/config/wireless

This is it

root@OpenWrt:~# cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11g'
        option path 'platform/10300000.wmac'
        option htmode 'HT20'
        option txpower '18'
        option cell_density '0'
        option country *****
        option distance '9'
        option channel 'auto'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option key **********
        option ieee80211w '1'
        option encryption 'psk2'
        option wmm '0'
        option ssid **********

wmm 0 is not valid when a HT mode is selected. distance 9 doesn't make a lot of sense either. Distance only needs to be set on long-range outdoor links-- the setting is in meters starting around 2000.

You could delete /etc/config/wireless then reboot to generate a new default file. Set your country (two capital letters), remove the disabled line and set psk2 and a key but make no other changes.

I deleted the config file and rebooted. then made minor changes but the problem still persists. This is the config file now

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11g'
        option path 'platform/10300000.wmac'
        option htmode 'HT20'
        option channel 'auto'
        option txpower '18'
        option cell_density '0'
        option country *****

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

Note: every asterisk you see I put on purpose. that's not actually how it looks in the conf file

I think the problem might be from here /var/run/hostapd-phy0.conf

Please do state if you've upgraded packages before hitting this issue, as this sounds a lot like:

all my packages are upgraded to the latest versions except "wpad-basic-wolfssl"

Well, there you have your problem. Either stick to 21.02.1 or upgrade all hostapd related packages to a version containing the fix referenced above.

you're right that fixed the problem :sweat_smile::sweat_smile::sweat_smile:.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.