immortalwrt/package
Bob Cantor cc574ef05e base-files: wifi: swap the order of some ubus calls
"/sbin/wifi up" makes three ubus calls:
1. ubus call network reload
2. ubus call network.wireless down
3. ubus call network.wireless up

The first and third ubus calls call drv_mac80211_setup,
while the second ubus call triggers wireless_device_setup_cancel,
so the call sequence becomes,

1. drv_mac80211_setup
2. wireless_device_setup_cancel
3. drv_mac80211_setup

This commit swaps the order of the first two ubus calls,
1. ubus call network.wireless down
2. ubus call network reload
3. ubus call network.wireless up

Consequently drv_mac80211_setup is only called once,
and two related bugs (#FS3784 and #FS3902) are no longer triggered
by /sbin/wifi.

branches affected: trunk, 21.02

Signed-off-by: Bob Cantor <coxede6557@w3boats.com>
2021-06-29 23:53:06 +08:00
..
base-files base-files: wifi: swap the order of some ubus calls 2021-06-29 23:53:06 +08:00
boot Merge Mainline 2021-06-26 16:49:16 +08:00
devel Merge Mainline 2021-05-26 17:14:27 +08:00
emortal autocore-arm: remove special practices for mt76 2021-06-10 23:18:10 +08:00
firmware brcmfmac4366c0-firmware-vendor: move to firmware 2021-06-24 17:23:46 +08:00
kernel mac80211: print an error if wifi teardown fails 2021-06-29 23:52:33 +08:00
libs Merge Mainline 2021-06-26 16:49:16 +08:00
network iwinfo: update to the latest version 2021-06-29 23:51:17 +08:00
system Merge Mainline 2021-06-26 16:49:16 +08:00
utils Merge Mainline 2021-06-21 20:49:40 +08:00
Makefile Merge Mainline 2021-05-13 23:01:12 +08:00