Ubuntu – Help: Unable to connect to 5G Wifi on raspberry pi 4 using ubuntu server 18.04

networkingraspberrypi

I used the same image of arm64 version downloaded on site:https://ubuntu.com/download/raspberry-pi .

Since the download link of pi3 and pi4 are the same, I downloaded one of them, flashed to 2 SD cards, and inserted into raspberry pi3B+ and raspberry pi4B (4Gb model)

I used the default netplan package to config my WLAN connection, the configuration file is located in /etc/netplan/50-cloud-init.yaml

# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    version: 2
    ethernets:
        eth0:
            dhcp4: true
            optional: true
    wifis:
        wlan0:
            dhcp4: true
            optional: true
            access-points:
                "XXXXX_5G":
                    password: "********"

I am using the same configuration on pi3 and pi4, but the WIFI on pi4 won't work, ip addr command shows the interface is down.

After I removed the "_5G" suffix on pi4 (which is the ssid of 2.4G wifi), and "netplan apply", it connected to the network successfully.

I don't know if this is an known driver issue or something like netplan issue?

I've tried swap the two SD card, the pi4 just won't connect to the 5G wifi AP.

Thanks a lot in advance!

Best Answer

Edit this file:

sudo vim /etc/default/crda

And add your country code (US for me)

Related Question