base-files: wifi: for wifi reconf, scan_wifi after network reload

Commit e8b5429609 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: e8b5429609 ("base-files: wifi: tidy up the reconf code")
Signed-off-by: Bob Cantor <bobc@confidesk.com>
This commit is contained in:
Bob Cantor 2021-07-05 03:26:46 +10:00 committed by Christian Marangi
parent fcfce8f208
commit 80a62a675d
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7

View File

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