openwrt-redmi-ax3000/package/kernel/mac80211
Bob Cantor 9302e63d1a 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>
(cherry-picked from commit d515f6b6cd)
2021-06-30 19:24:55 +02:00
..
files mac80211: always call wireless_set_data (FS#3784) 2021-06-30 19:24:55 +02:00
patches mac80211: backport fix for nl80211 control port tx (fixes FS#3857) 2021-06-30 19:24:55 +02:00
scripts mac80211: replace backticks by $(...) 2020-05-13 19:01:23 +02:00
ath.mk mac80211: Add wil6210 driver 2021-01-05 02:16:24 +00:00
broadcom.mk treewide: unify OpenWrt hosted source via @OPENWRT 2021-02-05 12:00:24 -10:00
intel.mk treewide: nuke DRIVER_11W_SUPPORT 2020-12-23 16:36:08 +01:00
Makefile mac80211: Update to backports-5.10.42 2021-06-06 17:54:58 +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