build icon indicating copy to clipboard operation
build copied to clipboard

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

Open SeeleVolleri opened this issue 1 year ago • 2 comments

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?

  • [ ] Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

SeeleVolleri avatar Jun 30 '24 23:06 SeeleVolleri

Jira ticket: AR-2397

github-actions[bot] avatar Jun 30 '24 23:06 github-actions[bot]

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

SeeleVolleri avatar Jun 30 '24 23:06 SeeleVolleri