openwrt/package/base-files/files/sbin
Bob Cantor 383456f31f 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>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:08:17 +00:00
..
firstboot base-files: firstboot: pass down arguments such as -y to jffs2reset 2015-03-10 23:43:25 +00:00
hotplug-call base-files: hotplug-call: exit success when dir is absent 2019-10-29 13:28:49 +00:00
led.sh scripts: fix wrong usage of '==' operator 2014-10-14 12:21:11 +00:00
pkg_check base-files: remove useless cat 2020-07-11 12:52:01 +02:00
sysupgrade base-files: add logging for configuration import 2021-09-01 08:07:51 +00:00
wifi base-files: wifi: swap the order of some ubus calls 2021-09-01 08:08:17 +00:00