hostapd: Always qoute SSID
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Mar 2019 11:08:08 +0000 (12:08 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Mar 2019 11:08:08 +0000 (12:08 +0100)
hostapd has a new parameter that always allows us to set
the SSID as a quoted UTF8 string

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.hostapd

index 8b281cc..245b4cf 100644 (file)
@@ -259,11 +259,8 @@ hostapd_config_write() {
                print "channel=${channel}"
                print "ignore_broadcast_ssid=${ignore_broadcast_ssid}"
 
-               if contains_spaces "${ssid}"; then
-                       print "ssid=\"${ssid}\""
-               else
-                       print "ssid=${ssid}"
-               fi
+               print "ssid2=\"${ssid}\""
+               print "utf8_ssid=1"
 
                # Kick stations that are too far away
                print "disassoc_low_ack=1"