Browse Source

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 <[email protected]>
Bob Cantor 4 years ago
parent
commit
80a62a675d
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

@@ -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 "$@"