openwrt/package
Bob Cantor 8530d727f3 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>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:08:17 +00:00
..
base-files base-files: fix /tmp/TZ when zoneinfo not installed 2021-09-01 08:08:15 +00:00
boot grub2: update to 2.06 2021-09-01 08:08:14 +00:00
devel binutils: update to 2.35.2 2021-09-01 08:08:07 +00:00
firmware linux-firmware: update to 20210511 2021-09-01 08:08:11 +00:00
kernel mac80211: always call wireless_set_data (FS#3784) 2021-09-01 08:08:17 +00:00
libs ustream-ssl: variants conflict with each other 2021-09-01 08:08:14 +00:00
network iwinfo: update to the latest version 2021-09-01 08:08:16 +00:00
system zram-swap: clean up the log messages 2021-09-01 08:08:16 +00:00
utils busybox: sysntpd: add trigger to reload server 2021-09-01 08:08:16 +00:00
Makefile build: fix opkg install step for large package selection 2021-09-01 08:08:05 +00:00