Re: How to get stats from the driver?

From: Jouni Malinen (
Date: 2002-09-11 15:45:58 UTC

On Wed, Sep 11, 2002 at 04:53:23PM +0200, Victor Aleo wrote:

> The first problem is that the info provided by
> /proc/net/prism2/wlan#/stats does not provide the number of bytes
> transmitted and received by the AP, but only the total number of frames
> (TxFragments and RxFragments).

Eh? TxUnicastOctets, TxMulticastOctets, RxUnicastOctets, RxMulticastOctets..

> Then, the correct question is: How can I do to fetch the total number of
> transmitted and received bytes?

See above or use wlan# netdev statistics. The driver increases the statistics in the Linux netdev and 'stats' in procfs is the sum from the CommTallies from the card firmware.

Jouni Malinen                                            PGP id EFC895FA

This archive was generated by hypermail 2.1.4.