2

How configure the Raspberry 3 B+ to connect only to the 5GHZ network and not to the 2.4GHZ network?

Its revision 1.3

The output from sudo iwlist wlan0 scan | grep Frequency

Frequency:2.437 GHz (Channel 6)
Frequency:2.437 GHz (Channel 6)
Frequency:2.437 GHz (Channel 6)
Frequency:5.32 GHz (Channel 64)
Frequency:5.32 GHz (Channel 64)
Frequency:5.32 GHz (Channel 64)
Frequency:5.24 GHz (Channel 48)
Frequency:5.24 GHz (Channel 48)
Frequency:5.24 GHz (Channel 48)
Frequency:5.24 GHz (Channel 48)
Frequency:5.24 GHz (Channel 48)
MatsK
  • 2,791
  • 3
  • 16
  • 20
User
  • 21
  • 4
  • unfortunately not because I need this service done the other way around. I tried it but unfortunately it didn't work – User Dec 19 '22 at 12:42
  • You miss the point! In that URL the explain how you specify 2.4GHz frequency's, do the same but change the 2,4 GHz frequencies to 5GHz! – MatsK Dec 20 '22 at 05:36
  • Witch revision of Raspberry Pi 3+ do you have ? I suspect it is rev. 1.3, but please verify! And what result does sudo iwlist wlan0 scan | grep Frequency produce? – MatsK Dec 20 '22 at 12:02
  • That's right, I own the revision 1.3.

    The result is like this when typing this command:

    Frequency:2.437 GHz (Channel 6) Frequency:2.437 GHz (Channel 6) Frequency:2.437 GHz (Channel 6) Frequency:5.32 GHz (Channel 64) Frequency:5.32 GHz (Channel 64) Frequency:5.32 GHz (Channel 64) Frequency:5.24 GHz (Channel 48) Frequency:5.24 GHz (Channel 48) Frequency:5.24 GHz (Channel 48) Frequency:5.24 GHz (Channel 48) Frequency:5.24 GHz (Channel 48)

    – User Dec 21 '22 at 07:12
  • And to rule out that it is the problem with the same SSID on both 2.4GHz and 5GHz, run sudo iwlist wlan0 scan | grep 'ESSID\|Frequency' – MatsK Dec 21 '22 at 09:36
  • okey I did it and it showed me the channel list and what next ? – User Dec 21 '22 at 12:33

1 Answers1

0

It is easy to select the frequencies you want to use. wpa_supplicant has an option freq_list. Just add this line to your /etc/wpa_supplicant/wpa_supplicant.conf:

freq_list=5170 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700

Then your WiFi will only connect to those frequencies.

Ref.: https://raspberrypi.stackexchange.com/a/107861/79866

MatsK
  • 2,791
  • 3
  • 16
  • 20