Making the OS prefer the 5Ghz frequency of my WiFi

Hello, everyone and I hope you are having a swell day.
After a year or so of absence I decided to jump back to Linux and I am in a bit of a pickle. I used to set up my Windows 10 Wifi connection with a preference towards using the 5Ghz frequency and subsequently the Wifi6 protocol, I could force Windows to do that even if I had a dual-band connection. My question would be; is it possible to force Endeavour to choose 5ghz as the preferred frequency and the AX protocol as the primary one? If yes, then how?
Thank you very much. :smile:

Should be easy. I have both 5 and 2.4 GHz networks, and I’m using 5 GHz on the devices that support it, and 2.4 with those that don’t.
Simply (try to) connect to the preferred network, and it will use that also later.

I probably explained myself badly. The Wi-Fi connection I have is a dual-band connection and is both 2.4 and 5Ghz and it defaults on 2.4 on here because I am a bit far it seems for Linux but even with 5Ghz on Windows the connection was rock solid so I want to force it on 5Ghz also here, so maybe that should be done on the driver level of my Wifi card?

It can be a question about drivers.
To look at it, can you please show some information about your system, like

 inxi -nza

as preformatted text (use the </> button above your text).

  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8169 v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 port: f000 bus-ID: 07:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  IF-ID-1: ipv6leakintrf0 state: unknown speed: N/A duplex: N/A
    mac: <filter>
  IF-ID-2: proton0 state: unknown speed: 10 Mbps duplex: full mac: N/A

Here you go :smile:

I might be wrong here, but I don’t think there is such a thing as both 2.4 and 5ghz on the same network. How routers usually offer both 2.4ghz and 5ghz networks is by creating two networks, bridged together in the same intranet, just like dual sim phones offer the functionality of two phones.
What is possible is that both wireless networks have the same SSID, thus making it difficult to differentiate between them. I normally have distinct names for my wireless networks: myWIFI and myWIFI_5ghz, for easier identification. If you never introduce your machine to the 2.4ghz network, it should always stay on the 5ghz one, no?

Ah yeah now that sounds more like what I wanted to say when it comes to the network. Yeah it is a bridged connection of a dual nature and I was wondering if you can make only the computer prefer the 5Ghz frequency. I could do that with the Windows drivers and I wondered if that is in any way possible here but it seems it might be a negative on that.

Actually I found the solution in KDE itself haha. Should’ve looked better but in the Connections tab in settings you can choose the preferred frequency in the BSSID dropdown menu.
Still thanks a lot for the help, I am learning a lot these last days and it reminds me of why I enjoyed Linux previously so much, you can just tinker with it in so much detail.


why not make the computer forget the 2.4 connection? is it not password protected so that the computer connects automatically to it?

This is really helpful info! You may want to mark your thread as solved with your post.