difos/package/kernel/mac80211
Bob Cantor d515f6b6cd 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-28 17:24:11 +02:00
..
files mac80211: always call wireless_set_data (FS#3784) 2021-06-28 17:24:11 +02:00
patches mac80211: fix an issue with wds links on 802.11ax devices 2021-06-19 12:17:09 +02:00
scripts mac80211: replace backticks by $(...) 2020-05-13 19:01:23 +02:00
ath.mk mac80211: fix ATH_REG_DYNAMIC_USER_REG_HINTS 2021-05-23 15:11:38 +02:00
broadcom.mk treewide: fix spelling 'seperate' -> 'separate' 2021-02-28 23:59:21 +00:00
intel.mk treewide: nuke DRIVER_11W_SUPPORT 2020-12-23 16:36:08 +01:00
Makefile mac80211: remove patches stripping down crypto support 2021-06-18 09:52:35 +02:00
marvell.mk kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
ralink.mk treewide: nuke DRIVER_11W_SUPPORT 2020-12-23 16:36:08 +01:00
realtek.mk treewide: nuke DRIVER_11W_SUPPORT 2020-12-23 16:36:08 +01:00