Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3784 - wifi cannot be turned off #8917

Closed
openwrt-bot opened this issue May 5, 2021 · 5 comments
Closed

FS#3784 - wifi cannot be turned off #8917

openwrt-bot opened this issue May 5, 2021 · 5 comments
Labels

Comments

@openwrt-bot
Copy link

openwrt-bot commented May 5, 2021

bobc:

  • Hardware: [[https://openwrt.org/toh/hwdata/netgear/netgear_wndr3700_v4|netgear, wndr3700-v4]] (ath79 ath9k ar9344 ar9582)
  • Versions of OpenWrt where bug occurs: [[https://downloads.openwrt.org/releases/21.02.0-rc1/targets/ath79/nand/|21.02.0-rc1]], [[https://downloads.openwrt.org/snapshots/targets/ath79/nand/|snapshot]] (ath79)
  • Versions of OpenWrt where bug does not occur : [[http://downloads.openwrt.org/releases/19.07.7/targets/ar71xx/nand/|19.07.7]], 18.06 (ar71xx)
  • **Duplicates: [[https://bugs.openwrt.org/index.php?do=details&task_id=3236|ath79: add support for Meraki MR16 #3236]]

=====Steps to reproduce=====
We should be able to turn wifi on/off via any of the following methods:

  • The wifi button in luci
  • The wifi button on the router
  • uci set wireless.radio0.disabled=$x && uci commit && wifi up (where x=0 to turn on wifi, x=1 to turn off wifi)

All three methods work to turn on wifi, but none of them work to turn off wifi. (Wifi continues running, the wifi LED on the router remains illuminated, and a client can connect to wifi). The problem occurs every time, on every boot.

The only way I have found to turn off wifi is, /etc/init.d/wpad restart

====Syslog when wifi is turned on via uci:====
Mon May 3 20:21:46 2021 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) –> new PHY
Mon May 3 20:21:46 2021 kern.info kernel: [ 233.225694] br-lan: port 2(wlan0) entered blocking state
Mon May 3 20:21:46 2021 kern.info kernel: [ 233.231259] br-lan: port 2(wlan0) entered disabled state
Mon May 3 20:21:46 2021 kern.info kernel: [ 233.237081] device wlan0 entered promiscuous mode
Mon May 3 20:21:46 2021 daemon.notice hostapd: wlan0: interface state UNINITIALIZED→COUNTRY_UPDATE
Mon May 3 20:21:47 2021 kern.info kernel: [ 233.455640] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Mon May 3 20:21:47 2021 kern.info kernel: [ 233.462390] br-lan: port 2(wlan0) entered blocking state
Mon May 3 20:21:47 2021 kern.info kernel: [ 233.467836] br-lan: port 2(wlan0) entered forwarding state
Mon May 3 20:21:47 2021 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE→ENABLED
Mon May 3 20:21:47 2021 daemon.notice hostapd: wlan0: AP-ENABLED
Mon May 3 20:21:48 2021 daemon.debug dnsmasq[2287]: listening on wlan0(#9): fe80::e6f4:c6ff:fee9:e1a%wlan0 port 53
Mon May 3 20:22:00 2021 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0)
Mon May 3 20:22:00 2021 daemon.err hostapd: Interface name wlan0 already in use
Mon May 3 20:22:00 2021 daemon.notice netifd: radio0 (2487): Command failed: Invalid argument
Mon May 3 20:22:00 2021 daemon.notice netifd: radio0 (2487): Device setup failed: HOSTAPD_START_FAILED
Mon May 3 20:22:00 2021 daemon.notice netifd: radio0 (2564): WARNING: Variable ‘data’ does not exist or is not an array/object

====Syslog when wifi is turned off via uci====
no output

====Syslog when wifi is turned off via luci====
Mon May 3 20:24:12 2021 kern.info kernel: [10819.214832] device wlan0 left promiscuous mode
Mon May 3 20:24:12 2021 kern.info kernel: [10819.219546] br-lan: port 2(wlan0) entered disabled state
Mon May 3 20:24:13 2021 daemon.notice netifd: radio0 (23114): WARNING: Variable ‘data’ does not exist or is not an array/object

====Syslog when wifi is forced off via "/etc/init.d/wpad restart"====
Mon May 3 20:27:37 2021 daemon.notice hostapd: wlan0: interface state ENABLED→DISABLED
Mon May 3 20:27:37 2021 daemon.notice hostapd: wlan0: AP-DISABLED
Mon May 3 20:27:37 2021 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Mon May 3 20:27:37 2021 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Mon May 3 20:27:37 2021 kern.info kernel: [ 583.724899] device wlan0 left promiscuous mode
Mon May 3 20:27:37 2021 kern.info kernel: [ 583.729643] br-lan: port 2(wlan0) entered disabled state
Mon May 3 20:27:37 2021 daemon.debug dnsmasq[2287]: stopped listening on wlan0(#9): fe80::e6f4:c6ff:fee9:e1a%wlan0 port 53
Mon May 3 20:27:37 2021 daemon.notice wpa_supplicant[2624]: Successfully initialized wpa_supplicant

@openwrt-bot
Copy link
Author

openwrt-bot commented Jun 24, 2021

bobc:

=====Correction=====
wifi can be turned off via LuCI.

@openwrt-bot
Copy link
Author

openwrt-bot commented Jun 24, 2021

bobc:

Update:========
bug is present in [[https://downloads.openwrt.org/releases/21.02.0-rc3/targets/ath79/nand/|21.02.0-rc3]]

@openwrt-bot
Copy link
Author

openwrt-bot commented Jun 24, 2021

bobc:

#4314

@openwrt-bot
Copy link
Author

openwrt-bot commented Jun 24, 2021

bobc:

#4316

@openwrt-bot
Copy link
Author

openwrt-bot commented Jul 2, 2021

bobc:

These pull-requests have been committed to the master and 21.02 branches, so this bug can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant