mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-11 15:33:03 +00:00
base-files: wifi: for wifi up, scan_wifi after network reload
Commitb82cc80713
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:b82cc80713
("base-files: wifi: swap the order of some ubus calls") Signed-off-by: Bob Cantor <bobc@confidesk.com>
This commit is contained in:
parent
a31b598590
commit
fcfce8f208
@ -128,9 +128,9 @@ wifi_updown() {
|
|||||||
[ enable = "$1" ] && {
|
[ enable = "$1" ] && {
|
||||||
_wifi_updown disable "$2"
|
_wifi_updown disable "$2"
|
||||||
ubus_wifi_cmd "$cmd" "$2"
|
ubus_wifi_cmd "$cmd" "$2"
|
||||||
|
ubus call network reload
|
||||||
scan_wifi
|
scan_wifi
|
||||||
cmd=up
|
cmd=up
|
||||||
ubus call network reload
|
|
||||||
}
|
}
|
||||||
[ reconf = "$1" ] && {
|
[ reconf = "$1" ] && {
|
||||||
scan_wifi
|
scan_wifi
|
||||||
|
Loading…
Reference in New Issue
Block a user