openwrt/package/base-files/files
Bob Cantor b82cc80713 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-28 17:24:11 +02:00
..
bin base-files: fix typo in config_generate MAC check 2021-06-14 22:29:49 +02:00
etc base-files: fix /tmp/TZ when zoneinfo not installed 2021-06-24 20:00:20 -10:00
lib base-files: bring up vlan interface too 2021-06-22 23:23:00 +02:00
rom
sbin base-files: wifi: swap the order of some ubus calls 2021-06-28 17:24:11 +02:00
usr base-files: validate firmware for compatibility with backup 2019-09-08 09:10:30 +02:00