2016-05-24 15:30:29

by Pukitis, Martins

[permalink] [raw]
Subject: AP statistics

Hi.
Is there cfg80211 API for getting AP statistics (bytes sent/received, packets sent/received/dropped)? I know there is "get_station", but it reads per station statistics. Stations may disconnect, hence you can't just sum together all station statistics to get per AP statistics.


2016-05-25 07:24:27

by Pukitis, Martins

[permalink] [raw]
Subject: RE: AP statistics

Yes, as well as
ip -s link
but this is not cfg80211 API.

-----Original Message-----
From: Matthias May [mailto:[email protected]]
Sent: Tuesday, May 24, 2016 21:56
To: Pukitis, Martins <[email protected]>; [email protected]
Subject: Re: AP statistics



On 05/24/2016 05:29 PM, Pukitis, Martins wrote:
> Hi.
> Is there cfg80211 API for getting AP statistics (bytes sent/received, packets sent/received/dropped)? I know there is "get_station", but it reads per station statistics. Stations may disconnect, hence you can't just sum together all station statistics to get per AP statistics.
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-wireless" in the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>

ethtool -S wlan0
should do the trick

BR
Matthias

2016-05-24 19:05:10

by Matthias May

[permalink] [raw]
Subject: Re: AP statistics



On 05/24/2016 05:29 PM, Pukitis, Martins wrote:
> Hi.
> Is there cfg80211 API for getting AP statistics (bytes sent/received, packets sent/received/dropped)? I know there is "get_station", but it reads per station statistics. Stations may disconnect, hence you can't just sum together all station statistics to get per AP statistics.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>

ethtool -S wlan0
should do the trick

BR
Matthias