lede/package
Bob Cantor 00be744e8f mac80211: always call wireless_set_data (FS#3784)
When wifi is turned off, drv_mac80211_teardown sometimes fails (silently)
because the device to be torn down is not defined.

This situation arises if drv_mac80211_setup was called twice when
wifi was turned on.

This commit ensures that the device to be torn down is always defined
in drv_mac80211_teardown.

Steps to reproduce:

1) Use /sbin/wifi to turn on wifi.
   uci set wireless.@wifi-iface[0].disabled=0
   uci set wireless.@wifi-device[0].disabled=0
   uci commit
   wifi

2) Use /sbin/wifi to turn off wifi.
   uci set wireless.@wifi-device[0].disabled=1
   uci commit
   wifi

3) Observe that wifi is still up.

branches affected: trunk, 21.02

Signed-off-by: Bob Cantor <coxede6557@w3boats.com>
2021-06-29 11:16:40 +08:00
..
base-files base-files: NTP servers set for CN users (#7101) 2021-06-20 05:28:04 +00:00
boot ipq807x: add Redmi AX6, Xiaomi AX9000 support 2021-06-24 12:16:06 +08:00
devel add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
firmware ipq807x: fix Xiaomi AX3600/AX9000 support 2021-06-26 02:47:30 +08:00
kernel mac80211: always call wireless_set_data (FS#3784) 2021-06-29 11:16:40 +08:00
lean libtorrent: bump to v1.2.14 2021-06-28 13:06:24 +08:00
libs ustream-ssl: variants conflict with each other 2021-06-27 01:00:05 +08:00
network iwinfo: update to the latest version 2021-06-29 11:11:37 +08:00
nss kernel: 5.10: re-add shortcut-fe patch (#7204) 2021-06-28 02:30:57 +00:00
system urngd: fix busy loop in case of ioctl cause high cpu usage 2021-06-21 11:52:55 +08:00
utils busybox: sysntpd: add trigger to reload server 2021-06-29 11:09:36 +08:00
Makefile add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00