]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/helpers/wpa_supplicant-config-helper
wireless: Fix wrong variable name
[people/stevee/network.git] / src / helpers / wpa_supplicant-config-helper
old mode 100755 (executable)
new mode 100644 (file)
index 26805a9..a487dc7
@@ -21,6 +21,9 @@
 
 . /usr/lib/network/functions
 
+# Read network settings
+network_settings_read
+
 action="${1}"
 assert isset action
 
@@ -33,10 +36,10 @@ config_file="$(wpa_supplicant_config_dir ${zone})/wpa_supplicant.conf"
 case "${action}" in
        create)
                # Create the configuration file for this zone.
-               zone_config_read ${zone} || exit $?
+               zone_settings_read ${zone} || exit $?
 
                wpa_supplicant_config_write ${zone} ${config_file} \
-                       --mode="${ENCRYPTION}" \
+                       --mode="${ENCRYPTION_MODE}" \
                        --ssid="${SSID}" \
                        --key="${KEY}" \
                || exit $?