You are not logged in.

#1 2022-05-16 18:36:46

jones
Member
Registered: 2013-03-14
Posts: 244

[S] How can I find out if the wifi connection is 2.4GHz or 5GHz?

I connected to my new modem network "ABC" via my usual line:

sudo wpa_supplicant -B -i wlp61s0 -c my_home_WIFI.conf && sudo dhcpcd wlp61s0

All went well.

Went into the router/modem website thing via 192.168.0.1 and saw that there are two networks running with the name ABC, one being broadcasted with 2.4 Ghz, the other one 5 Ghz.
I saw my machine is connected to the 5 GHz version.

=> How can I find out to which network frequency I am connected via tools & means on Arch Linux? smile

Last edited by jones (2022-05-16 19:52:20)

Offline

#2 2022-05-16 18:46:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [S] How can I find out if the wifi connection is 2.4GHz or 5GHz?

iwconfig, part of wireless-tools

ewaller@odin/home/ewaller[147] % iwconfig
lo        no wireless extensions.

eno1      no wireless extensions.

wlo1      IEEE 802.11  ESSID:"<redacted>"
          Mode:Managed  Frequency:5.765 GHz  Access Point: A8:5E:45:43:85:A4
          Bit Rate=433.3 Mb/s   Tx-Power=22 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=50/70  Signal level=-60 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:2  Invalid misc:861   Missed beacon:0

ewaller@odin/home/ewaller %

Last edited by ewaller (2022-05-16 18:47:18)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2022-05-16 18:57:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [S] How can I find out if the wifi connection is 2.4GHz or 5GHz?

wpa_cli status | grep freq

You can also set "freq_list" in your config to specify which one to connect to (and override any default determination of which one is "better") - or just specify the preferred BSSID.

Last edited by Trilby (2022-05-16 19:09:31)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2022-05-16 19:52:03

jones
Member
Registered: 2013-03-14
Posts: 244

Re: [S] How can I find out if the wifi connection is 2.4GHz or 5GHz?

@ewaller

Well, that was quite the good accidental troll.
Searched for a good minutes why I couldn't install wireless-tools... because it is wireless_tools. smile

That worked, thanks!

@Trilby
That command throws me an error which google tells me seems to be connected to my country setting or rather, lack thereof.

Offline

#5 2022-05-16 20:05:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [S] How can I find out if the wifi connection is 2.4GHz or 5GHz?

Opps, sorry


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB