Browse Source

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 <[email protected]>
Bob Cantor 4 years ago
parent
commit
fcfce8f208
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/base-files/files/sbin/wifi

+ 1 - 1
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