18.04 Server: Change WiFi frequency to 2.4Ghz band on Raspberry Pi 3B+

I have 2.4GHz-only APs but my Raspberry Pi 3B+ has dual band capability. I want to tell Ubuntu in its terminal to make sure nothing runs on 5.2Ghz.

I have searched far and wide locally and on the internet for a solution to this, and have come back with nothing.

3B+ specifications

SoC: Broadcom BCM2837B0 quad-core A53 (ARMv8) 64-bit @ 1.4GHz

GPU: Broadcom Videocore-IV

RAM: 1GB LPDDR2 SDRAM

Networking: 2.4GHz and 5GHz 802.11b/g/n/ac Wi-Fi

Bluetooth: Bluetooth 4.2, Bluetooth Low Energy (BLE)

Any ideas?

1 Answer

nmcli is the CLI tool to use here to control Network Manager. As per make sure your WiFi radio is on with nmcli r wifi on then find the name of your Pi's WiFi with nmcli d .

List the WiFi Access Points (WAPs) with nmcli d wifi list then connect with nmcli d wifi connect my_wifi password .

Since your WAPs are 2.4GHz, you won't select any 5 GHz WAP, and once you've connected to your 2.4 GHz WAP, it will stay connected.

wpa_supplicant allows you to specify frequencies restricted to the 2.4 GHz band only by adding a file /etc/wpa_supplicant.conf with a line including

freq_list=2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462

provides GUI-based instructions if you've added a GUI to your server; shows the critical screen for WAP selection.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like