ssid with double space not stored correctly

Erich Titl erich.titl at think.ch
Sun Dec 10 08:56:29 PST 2017


Hello

I am running wpa_supplicant 2.6 on an embedded linux platform. It
appears that ssid's with double white space is not correctly written to
wpa_supplicant using wpa_cli

SALT# wpa_cli set_network 23 ssid \"NOS-CAFE DA  MARINA\"
Selected interface 'wlan0'
OK

but

SALT# wpa_cli list_networks
Selected interface 'wlan0'
network id / ssid / bssid / flags
0       marina04        any     [DISABLED]
1       MRCYB   any     [DISABLED]
2       club nautico    any     [DISABLED]
3       MARINA  any     [DISABLED]
4       Marina_Bas_du_Fort      any     [DISABLED]
5       TOUBANA any     [DISABLED]
6       Club Med WiFi   any     [DISABLED]
7       HotHotHotSpot!  any     [DISABLED]
8       #1 Wi-Fi iSeaGreen & Rental     any     [DISABLED]
9       Maogany Boutique        any     [DISABLED]
10      MARINA-WIFI     any     [DISABLED]
11       MARINA-WIFI    any     [DISABLED]
12      Wifi_Assembleia any     [DISABLED]
13       MARINA-WIFI    any     [DISABLED]
14       MARINA-WIFI    any     [DISABLED]
15       MARINA-WIFI    any     [DISABLED]
16       MARINA-WIFI    any     [DISABLED]
17       MARINA-WIFI    any     [DISABLED]
18      Praia-GoWiFi    any     [DISABLED]
19      marina01        any     [DISABLED]
20      marina05        any     [DISABLED]
21      marina_nascente any     [DISABLED]
22      CNN01W02        any     [DISABLED]
23      NOS-CAFE DA MARINA      any     [DISABLED]

If I set the stanza into wpasupplicant.conf like

network={
        ssid="NOS-CAFE DA  MARINA"
        key_mgmt=NONE
}

then I am getting the correct ssid set

23      NOS-CAFE DA  MARINA     any     [CURRENT]

It feels like double spaces are somehow suppressed in wpa_cli

cheers

ET

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1928 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20171210/9de0e144/attachment.p7s>


More information about the Hostap mailing list