Search Linux Wireless

Re: [WIP, RFC] libertas: allow scanning via "iw"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > * signal isn't reported in dBm or mBm. The scan response from
> >   the firmware tells me some "RSSI" value.
> 
> #define MRVDRV_NF_DEFAULT_SCAN_VALUE          (-96)
> #define SCAN_RSSI(RSSI)                       (0x100 - ((u8)
(RSSI)))
> 
>       iwe.u.qual.level = SCAN_RSSI(bss->rssi);
> 
>       rssi = iwe.u.qual.level - MRVDRV_NF_DEFAULT_SCAN_VALUE;
> 
> so it's more or less dBm.

I'm not that sure about that. I made a test and moved with my 
laptop away from an access-point. In the table below you find 
the signal from ipw2200/iwconfig. And in the second column the 
raw "u8 rssi" from libertas' scan response:

ipw2200 libertas
signal  rssi
-28     38
-36     42
-42     44
-32     46
-38     47
-41     42
-49     47
-49     48
-49     49
-49     48
-47     59
-49     65
-52     54
-55     57
-43     73

So, it's everything but an RSSI, because an RSSI would be high in 
the vincinity of the AP and decrease when farther away. The name 
is bogus, don't put too much value in it :-)

SCAN_RSSI(rssi) = 0x100 - rssi = 218. That doesn't look like a 
dBm either.

-- 
http://www.holgerschurig.de
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux