summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/8021x14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/8021x b/src/8021x
index 3de0a00..e2db408 100644
--- a/src/8021x
+++ b/src/8021x
@@ -186,7 +186,19 @@ make_wpa_config_file() {
make_wpa_config() {
case $SECURITY in
wep|wep-old|wpa|none|none-old)
- echo "ssid=\"$ESSID\""
+ case "${ESSID_TYPE:-ascii}" in
+ ascii)
+ echo "ssid=\"$ESSID\""
+ ;;
+ hex)
+ # Hex ESSID is written unquoted ans lowercase (FS#24333)
+ echo "ssid=${ESSID,,}"
+ ;;
+ *)
+ report_fail "ESSID_TYPE must be set to 'ascii' or 'hex'."
+ return 1
+ ;;
+ esac
if [[ -n "$AP" ]]; then
echo "bssid=${AP,,}"
fi