greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.85k stars 470 forks source link

net: 802.11ac frequency should be displayed as 5Ghz #1879

Closed farwayer closed 1 year ago

farwayer commented 1 year ago

In previous versions it was correct but now it is showed as 6GHz

MaxVerevkin commented 1 year ago

What is the output of iw dev <your device> link | grep freq on your system?

farwayer commented 1 year ago

5540

According to wiki (know it's not the best source):

So the is small overlap at the end of 5Ghz range. it's better to use RxMode/TxMode to find the frequency range or show frequency unrounded

farwayer commented 1 year ago

also note that I wrote the entire range of channels, not the center frequencies

MaxVerevkin commented 1 year ago

In previous versions it was correct

I assume it was 5.5, which you can have by setting the width to 3: $frequency.eng(w:3).

MaxVerevkin commented 1 year ago
* 5 GHz channels are from 5030 to 5990 (802.11a/h/j/n/ac/ax)

* 6 GHz are from 5945 to 7125 (802.11ax and 802.11be)

Hm, I suppose we can add a new placeholder which maps the frequency from actual value to this "conventional name", such as 2.4, 5, 6, etc.

farwayer commented 1 year ago

Hm... maybe frequency should be displayed fully by default and 'conventional name' added. Good idea. It is much more useful to know the operating mode, (2.4, 5 or 6) than a certain frequency.

Anyway $frequency.eng(w:1) resolved my issue for now thanks!