Missing rx statistics in repeater mode

Jouni Malinen jkmaline
Sun Nov 9 10:28:44 PST 2003


On Wed, Oct 29, 2003 at 12:03:17AM +0000, Mike Saywell wrote:

> I have 2 hosts running hostap 0.1.1, 1 is in master mode and the other
> is in repeater mode.
> 
> On the host in repeater mode some of the wireless statistics in /proc
> are missing, e.g.

Thanks for reporting this. The function that updated rx_packets and
rx_bytes was only called in Master mode. I changed the code so that it
will also be called in Repeater mode to get these counters updated.

> last_rx: silence=156 signal=174 rate=110

> Oh, also with regards to the noise & signal values to convert to dBm is
> it just a matter of subtracting 256?  (the numbers seem about right :)

Well.. It depends. With some cards and some firmware versions that may
indeed be the case, but not with all..

New firmware versions actually give the RSSI -> dBm adjustment value in
cnfDbmAdjust RID. I have only seen value 100 there and the current
driver versions uses fixed 100 (should probably change it to read that
RID and use it, if available). Currently, the numbers are shown as
unsigned integers, but they should probably be converted to be signed
for the procfs files, so you would not need to do this -256 part
separately.

-- 
Jouni Malinen                                            PGP id EFC895FA




More information about the Hostap mailing list