OpenWrt Forum Archive

Topic: How to escape spaces in a SSID?

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

i have already searched the forum, but didnt found anything suitable.

I have an WRT54GL running with WR 0.9, configured in Client Mode to access a certain Access Point with WEP 64bit encryption. The SSID of this AP is from a form like

"AP foo".

The AP should distribute IPs via DHCP, but neither I can't get one, nor I get *any* WLAN frames. Now I have the assumption, that the WRT can't connect because of the space in the SSID.
At the moment it is set by

nvram set wl0_ssid=AP foo

Is this right or have I to escape the space? And if so, how do I that?

Greets, fnord

Escaping is done by adding \ before the character to be escaped:

Ap\ foo

Alternatively you can double/single quote it, but it looks like that doesn't help much with WhiteRussian (I tried doing it with my WPA key which has a ' in it).

The discussion might have continued from here.