base-files: wifi: for wifi reconf, scan_wifi after network reload
Commite8b5429609
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:
parent
fcfce8f208
commit
80a62a675d
1 changed files with 1 additions and 1 deletions
|
@ -133,9 +133,9 @@ wifi_updown() {
|
||||||
cmd=up
|
cmd=up
|
||||||
}
|
}
|
||||||
[ reconf = "$1" ] && {
|
[ reconf = "$1" ] && {
|
||||||
|
ubus call network reload
|
||||||
scan_wifi
|
scan_wifi
|
||||||
cmd=reconf
|
cmd=reconf
|
||||||
ubus call network reload
|
|
||||||
}
|
}
|
||||||
ubus_wifi_cmd "$cmd" "$2"
|
ubus_wifi_cmd "$cmd" "$2"
|
||||||
_wifi_updown "$@"
|
_wifi_updown "$@"
|
||||||
|
|
Loading…
Reference in a new issue