aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin/wifi
diff options
context:
space:
mode:
authorBob Cantor <bobc@confidesk.com>2021-07-05 03:03:58 +1000
committerChristian Marangi <ansuelsmth@gmail.com>2022-10-25 09:24:27 +0200
commitfcfce8f208f3790764beacd5e3f25a73d4c9eb5d (patch)
tree1acd11a9927f61a26a09d26baedcacaf35efb4aa /package/base-files/files/sbin/wifi
parenta31b598590342bdf0e2b144e5d1b63627d18b6b3 (diff)
downloadupstream-fcfce8f208f3790764beacd5e3f25a73d4c9eb5d.tar.gz
upstream-fcfce8f208f3790764beacd5e3f25a73d4c9eb5d.tar.bz2
upstream-fcfce8f208f3790764beacd5e3f25a73d4c9eb5d.zip
base-files: wifi: for wifi up, scan_wifi after network reload
Commit b82cc8071366 included an unintended change and we now call scan_wifi before a network reload. Restore the original behaviour and call scan_wifi only after a network reload. Fixes: b82cc8071366 ("base-files: wifi: swap the order of some ubus calls") Signed-off-by: Bob Cantor <bobc@confidesk.com>
Diffstat (limited to 'package/base-files/files/sbin/wifi')
-rwxr-xr-xpackage/base-files/files/sbin/wifi2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi
index 6b9662fe93..7e248add9d 100755
--- a/package/base-files/files/sbin/wifi
+++ b/package/base-files/files/sbin/wifi
@@ -128,9 +128,9 @@ wifi_updown() {
[ enable = "$1" ] && {
_wifi_updown disable "$2"
ubus_wifi_cmd "$cmd" "$2"
+ ubus call network reload
scan_wifi
cmd=up
- ubus call network reload
}
[ reconf = "$1" ] && {
scan_wifi