From: Victor Aleo (victor.aleo_at_estudiant.upc.es)
Date: 2002-09-11 14:53:23 UTC
How can I get stats from the driver? I have checked that I can get some of them from /proc/net/prism2/wlan#/stats. But is seems to me that they are not very detailed. In my case I need to make an approximation of the throughput of the AP. My idea is to sum all the packets that pass through the AP (transmmited and received) during a given time.
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). As it is known, the frame length in
802.11 networks is variable. Therefore, these values do not represent a good estimation of the current load of the AP (yes, my goal is to "quantify" the load of an AP).
Then, the correct question is: How can I do to fetch the total number of transmitted and received bytes?
Futhermore, I use the functions provided by the Wireless Tools
(iwlib.c). It is possible to use directly the functions from the driver
from an user space program to get these stats? My idea is to use hostapd
(unfortunately I only have installed Prism2-2002-05-19) and access to
these stats without using Wireless Tools.
Sorry for this long email and thanks for your time!