Solved How to set an access point with spaces in the name correctly?

Alexander88207

Enthusiast
Hello,

my adapter sometimes connects to other free networks instead of my. I have tried to follow 31.3.4.1.2.1. Selecting an Access Point but my wifi name have spaces. I have tried with "FRITZ!Box 7590 NX" or FRITZ!Box_7590_NX but it doesn't work. Anybody got another idea?

Many thanks in advance!
 
In 31.3.2. Quick Start there is this:
Add an entry for this network to /etc/wpa_supplicant.conf. If the file does not exist, create it. Replace myssid and mypsk with the SSID and PSK provided by the network administrator.
Code:
network={
    ssid="myssid"
    psk="mypsk"
}

Did you try this?

"FRITZ!Box 7590 NX" or FRITZ!Box_7590_NX
Spaces and underscores are two completey different characters when it comes to SSID names.
See https://routersecurity.org/SSID.php

But:
any use of a special character may be asking for trouble.

So there are indeed problems with spaces in SSID names sometimes. I'd rename the WIFI.
 
I think you misunderstood me. I want to set the ssid in the /etc/rc.conf so that freebsd can choose that network directly.

1598108021749.png
 
No need "0x" as prefix?
ifconfig man page said:
ssid ssid
Set the desired Service Set Identifier (aka network name). The
SSID is a string up to 32 characters in length and may be speci-
fied as either a normal string or in hexadecimal when preceded by
`0x'. Additionally, the SSID may be cleared by setting it to
`-'.
I wonder what to do if your SSID actually begins by "0x"...
 
Back
Top