[openwrt/openwrt] base-files: wifi: for wifi up, scan_wifi after network reload
LEDE Commits
lede-commits at lists.infradead.org
Tue Oct 25 10:25:47 PDT 2022
ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/fcfce8f208f3790764beacd5e3f25a73d4c9eb5d
commit fcfce8f208f3790764beacd5e3f25a73d4c9eb5d
Author: Bob Cantor <bobc at confidesk.com>
AuthorDate: Mon Jul 5 03:03:58 2021 +1000
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 at confidesk.com>
---
package/base-files/files/sbin/wifi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the lede-commits
mailing list