openwrt/package
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
..
base-files base-files: fix /tmp/TZ when zoneinfo not installed 2021-06-25 14:53:52 -10:00
boot ramips: add support for Linksys EA8100 v1 2021-06-10 17:09:35 +02:00
devel binutils: fix libbfd missing DSO dependency if NLS enabled 2021-04-10 14:22:28 +02:00
firmware wireless-regdb: update to version 2021.04.21 2021-06-08 20:44:12 +02:00
kernel mac80211: always call wireless_set_data (FS#3784) 2021-06-30 19:24:55 +02:00
libs libusb: Fix parsing of descriptors for multi-configuration devices 2021-06-26 17:11:21 +02:00
network iwinfo: update to latest Git HEAD 2021-06-27 14:00:18 +02:00
system opkg: update to git HEAD 2021-06-14 00:02:19 +02:00
utils busybox: sysntpd: add trigger to reload server 2021-06-30 09:24:15 +02:00
Makefile build: always build package/kernel/linux 2020-10-15 13:25:58 +02:00