aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin
diff options
context:
space:
mode:
authorBob Cantor <bobc@confidesk.com>2021-07-05 03:26:46 +1000
committerChristian Marangi <ansuelsmth@gmail.com>2022-10-25 09:24:37 +0200
commit80a62a675d2ef57a1885e1829926dd2ea1682612 (patch)
tree95f2b745b8d04b756508738d2d8bcc9cd9736571 /package/base-files/files/sbin
parentfcfce8f208f3790764beacd5e3f25a73d4c9eb5d (diff)
downloadupstream-80a62a675d2ef57a1885e1829926dd2ea1682612.tar.gz
upstream-80a62a675d2ef57a1885e1829926dd2ea1682612.tar.bz2
upstream-80a62a675d2ef57a1885e1829926dd2ea1682612.zip
base-files: wifi: for wifi reconf, scan_wifi after network reload
Commit e8b542960921 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: e8b542960921 ("base-files: wifi: tidy up the reconf code") Signed-off-by: Bob Cantor <bobc@confidesk.com>
Diffstat (limited to 'package/base-files/files/sbin')
-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 7e248add9d..6a9dce7e8a 100755
--- a/package/base-files/files/sbin/wifi
+++ b/package/base-files/files/sbin/wifi
@@ -133,9 +133,9 @@ wifi_updown() {
cmd=up
}
[ reconf = "$1" ] && {
+ ubus call network reload
scan_wifi
cmd=reconf
- ubus call network reload
}
ubus_wifi_cmd "$cmd" "$2"
_wifi_updown "$@"