armbian / build

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf
https://www.armbian.com
GNU General Public License v2.0
3.88k stars 2.18k forks source link

[Bug]: Cannot connect to Chinese SSID on first login #6848

Open SeeleVolleri opened 3 weeks ago

SeeleVolleri commented 3 weeks ago

What happened?

The armbian-firstlogin script cannot connect to Chinese SSID, such as:

         Cell 10 - Address: 11:45:14:19:19:81
                    ESSID:"\xE6\xB5\x81\xE9\x87\x8F\xE4\xB9\x8B\xE5\xBE\x8B\xE8\x80\x85"
                    Mode:Managed
                    Frequency:5.18 GHz (Channel 36)
                    Quality:5/5  Signal level:-46 dBm  Noise level:-93 dBm
                    Encryption key:off
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 9 Mb/s; 18 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s

How to reproduce?

1, rebuild 2, reflash firefly-itx-3588j 3, boot

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

Other

Are you building on Windows WSL2?

Relevant log URL

No response

Code of Conduct

github-actions[bot] commented 3 weeks ago

Jira ticket: AR-2397

SeeleVolleri commented 3 weeks ago

It seems need to convert from hex first, then use wpa_passphrase to connect. something like

ssid=$(echo -e '\xE6\xB5\x81\xE9\x87\x8F\xE4\xB9\x8B\xE5\xBE\x8B\xE8\x80\x85' | sed 's/\\x//g')
wpa_passphrase $ssid $password

I don't know how script called wpa_supplicant to connect the network, so I can only got this