Joshua-Riek / ubuntu-rockchip

Ubuntu for Rockchip RK35XX Devices
https://joshua-riek.github.io/ubuntu-rockchip-download/
GNU General Public License v3.0
2.47k stars 261 forks source link

Bug Report: Orange Pi 5 Max can't connect to WPA2 5G WiFi networks but can connect to 2.4G #1026

Open DiegoBM opened 2 months ago

DiegoBM commented 2 months ago

What happened?

After installing the network manager, when trying to connect to my WiFi, the 2.4G network will work fine, but the 5G network will consistently fail with the error: "Error: Connection activation failed: Secrets were required, but not provided."

Both networks are separated, use the same encryption "WPA/WPA2-Personal", and have the same password. I've tried multiple solutions online to no avail.

According to this link, it might be related to the association taking too long, but there's no reason for it to take too long, in any case I also tried their suggestions with no success. Might not change anything, but the board is physically right next to the router, full signal.

Kernel version

6.1.0-1023-rockchip

SBC model

Orange Pi 5 Max

What operating system are you seeing this problem on?

Ubuntu Server 24.04 LTS (Noble Nombat)

DiegoBM commented 2 months ago

Ubuntu Desktop can connect to the 5G network (not sure how), so if it's using the same drivers and all the same, I presume that I must be something that I'm doing wrong

DiegoBM commented 2 months ago

Actually the exact same operation in Orange Pi's ubuntu server distro just works for 5G network, so maybe I'm not doing anything wrong

Joshua-Riek commented 2 months ago

Ubuntu 24.04 uses netplan, you should not need to install a network manager?

DiegoBM commented 2 months ago

Apologies, this is my first time connecting to WiFi through command line, I was in fact following the only ubuntu guide I could find on configuring WiFi connections, so I assumed it was the way to go. Where could I find more details about netplan? Is nmcli not supposed to work then?

Joshua-Riek commented 2 months ago

That is the Ubuntu Core documentation. It uses network-manager instead of netplan from my understanding.

aggiedude commented 2 months ago

I seem to be having the same issue with my Orange Pi 5 Max running ubuntu desktop 24.04 LTS. Unable to connect to 5ghz networks. I have switched to using the ethernet port for now.

ewaldc commented 1 month ago

@Joshua-Riek, in Ubuntu 24.04 NetworkManager actually uses a YAML/netplan based back-end. So even in the desktop version, the network configuration will be saved/stored in /etc/netplan directory as you modify the config using nmtui and/or GUI.
@DiegoBM, take a look at that folder, if all went well, you should see your Wlan config file there. It should be similar to that in Ubuntu server. Can you find any errors in journalctl ? Alternatively you can try to setup the connection manually using wpa_supplicant as per this article. Unlikely the issue, but just to be sure: is the chosen 5G frequency supported in your country ? Happened to me once as I had accidently set my router country code to Bolivia I believe (instead of Belgium). All devices connected without issues except one... It would scan the SSID, but refuse to connect.