[Prism54-devel] [PATCH] AVS endianess & signal,noise levels

Aurelien slts@free.fr
Sat, 20 Mar 2004 11:29:12 +0100


Hi,

Antonio Eugenio Burriel wrote:
> Hi again, finally I've seen the light :)
> 
> Facts:
> 1. rfmon_header is little-endian
> 2. avs_80211_1_header is big-endian

That was the problem. I was sure rfmon_header was big-endian...

> Ah, about the signal & noise levels, what do you think about stripping
> the sign bit (&0x7f) and keeping the ssi_type set to raw? gpsmap (from
> Kismet) assumes lowest_signal=+255 and strongest_signal=-255.
> 
> The raw data _seems_ to be signed integer scaled in dBm so it would make
> more sense to extend the sign to 32bit and change the ssi_type to dBm.
> However this would kill Kismet (PowerPrinter function) as it only
> understands unsigned values. Obviously this can easily be fixed on their
> sources.

It makes sense. I modified the code in this way.


	...And justice for all