SSID中的特殊字符与wpa_supplicant导致问题(Debian hdmi stick)

时间:2017-05-30 07:47:20

标签: linux debian driver wireless ssid

我有一个问题,我可以使用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。

如果您有一些想法,请提前感谢您。我已经为错误消息添加了更多精确度。

2 个答案:

答案 0 :(得分:1)

对于SSID / PSK中的特殊字符,请使用十六进制字符串

network={
    ssid=00010203
    psk=6173632761736361737363c3a461
}

Source

更新

使用wpa_cli:

wpa_cli set_network 1 ssid '"12345678'üČ\"?\\"'

答案 1 :(得分:0)

您可以尝试先找到bss来正确获取ssid名称(例如:11:1a:aa:ff:ff:ff)

iw dev wlan0 scan

wpa_cli -i wlan0 scan_results

然后在其中使用bss:

  

wpa_cli bss 11:1a:aa:ff:ff:ff | grep ssid

并在wpa_supplicant conf中使用该名称