get_wifi_country: call save_config instead of reconfigure

This commit is contained in:
Serge Schneider
2019-06-20 20:02:40 +01:00
parent 779c266e23
commit a699942c1b
2 changed files with 8 additions and 1 deletions

View File

@@ -468,7 +468,7 @@ get_wifi_country() {
fi
return 1
fi
wpa_cli -i "$IFACE" reconfigure > /dev/null 2>&1
wpa_cli -i "$IFACE" save_config > /dev/null 2>&1
COUNTRY="$(wpa_cli -i "$IFACE" get country)"
if [ "$COUNTRY" = "FAIL" ]; then
return 1