Re: Getting wifi bitrate

2021-01-04 Thread Björn Gohla
Tilo Stritzky writes: > On 31/12/20 16:13 Björn Gohla wrote: >> Stefan Sperling writes: >> > What problem are you trying to solve? >> >> I just want to show the network activity in my desktop status line. > > You might want to take a look a netstat -w / -W. [...] Thanks. That's nice. But as

Re: Getting wifi bitrate

2021-01-04 Thread Tilo Stritzky
On 31/12/20 16:13 Björn Gohla wrote: > Stefan Sperling writes: > > What problem are you trying to solve? > > I just want to show the network activity in my desktop status line. You might want to take a look a netstat -w / -W. tilo

Re: Getting wifi bitrate

2021-01-02 Thread Stefan Sperling
On Fri, Jan 01, 2021 at 02:13:43PM +, Björn Gohla wrote: > > [...] > >> I just want to show the network activity in my desktop status line. > > > > Understood, fair enough. > > The chosen Tx rate is not a very reliable indicator of actual throughput > > but it can serve as a wifi link quality

Re: Getting wifi bitrate

2021-01-01 Thread Björn Gohla
[...] >> I just want to show the network activity in my desktop status line. > > Understood, fair enough. > The chosen Tx rate is not a very reliable indicator of actual throughput > but it can serve as a wifi link quality indicator to some extent. >From ifconfig.c I gather that

Re: Getting wifi bitrate

2020-12-31 Thread Stefan Sperling
On Thu, Dec 31, 2020 at 04:13:56PM +, Björn Gohla wrote: > > Stefan Sperling writes: > > > On Thu, Dec 31, 2020 at 02:28:35PM +, Björn Gohla wrote: > >> Hi all, > [...] > >> So how do I get the it? Am I looking in the wrong place, or does the > >> driver just not expose this information?

Re: Getting wifi bitrate

2020-12-31 Thread Björn Gohla
Stefan Sperling writes: > On Thu, Dec 31, 2020 at 02:28:35PM +, Björn Gohla wrote: >> Hi all, [...] >> So how do I get the it? Am I looking in the wrong place, or does the >> driver just not expose this information? > > Rate/MCS + channel width + some other parameters map to a Tx bitrate: >

Re: Getting wifi bitrate

2020-12-31 Thread Stefan Sperling
On Thu, Dec 31, 2020 at 02:28:35PM +, Björn Gohla wrote: > Hi all, > > I have a small question: I want to get the current rate of actually > transmitted (and received) bits for my wifi adaptor. I thought this > fragment from ifconfig does what I want >

Getting wifi bitrate

2020-12-31 Thread Björn Gohla
Hi all, I have a small question: I want to get the current rate of actually transmitted (and received) bits for my wifi adaptor. I thought this fragment from ifconfig does what I want (https://github.com/openbsd/src/blob/3a44e88910781e836bd51a8b6b068379abc67a1b/sbin/ifconfig/ifconfig.c#L2783):