我有一个问题,我可以使用 wpa_suppli 进行无线连接
cant on some network, but i need to connect on a network where the SSID contain a "é" and it won't work and I don't understand why, when i do : iwlist scan I get the ssid in this way :
Cell 01 - Address: 00:22:07:59:K5:C9
ESSID:"t\xC3\xA9test"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.412 GHz (Channel 1)
Encryption key:on
Bit Rates:144 Mb/s
Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
所以我尝试了一些东西,比如在我的 SSID 之前添加一个 P,比如:
network={
ssid=P"t\xC3\xA9st"
psk="My password"
}
还有
network={
ssid=P"tést"
psk="My password"
}
network={
ssid="t\xC3\xA9st"
psk="My password"
}
network={
ssid="tést"
psk="My password"
}
但这些都不起作用,
当我尝试启动 wpa_supplicant 时,这是我得到的错误:
root@MSDEV264:~# /sbin/wpa_supplicant -i p2p0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)
p2p0: Trying to associate with 00:22:07:59:f5:c9 (SSID='t\xC3\xA9st' freq=2412 MHz)
p2p0: Association request to the driver failed
然后它继续无限循环:
p2p0: Trying to associate with 00:22:07:59:f5:c9 (SSID='t\xC3\xA9st' freq=2412 MHz)
p2p0: Association request to the driver failed
我的语言环境已正确设置为 UTF-8。
如果您有一些想法,请提前致谢。我已经添加了关于错误消息的更多精确度。
最佳答案
对于 SSID/PSK 中的特殊字符,使用十六进制字符串
network={
ssid=00010203
psk=6173632761736361737363c3a461
}
更新:
使用 wpa_cli:
wpa_cli set_network 1 ssid '"12345678'üČ\"🦄\\"'
关于linux - SSID 中带有 wpa_supplicant 的特殊字符导致问题(Debian hdmi 棒),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44256458/