Search Linux Wireless

Re: [rtl8185] driver working but some probs

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

 



Andrea Merello wrote:
>
> > > First thing I noticed: the reported "Link Signal Level"
> > > from iwconfig was way off.  It showed values around
> > > -170 dBm when it was sitting directly beside the AP.
> > > It was easy to fix:
> > >
> > > -     rx_status.ssi = (flags2 >> 8) & 0x7F;
> > > +     rx_status.ssi = (flags2 >> 8) & 0xFF;
> > >
> > > According to the 8180 datasheet, this field is 8 bit.
> > >
> > Ugh. The diagram (in the 8185 datasheet) shows that the rssi field is 7 bits
> > long while the table after it says 8 bits, and the two figures disagree on a
> > few other fields too. I'll fix that up..

Maybe the 8185 changed it so that the LSB of the RSSI is now
the antenna flag?  Just guessing though, I couldn't find an
8185 manual...

> True, the datasheet is not consistent.
> However the last reference code I have from Realtek is
> 
> signal=((*(priv->rxringtail+1))& (0xff0000))>>16;
>[...]
> Similar to rtl8187 this look at AGC, not RSSI, field to extract signal
> strength information.

Hmm... there's no AGC field (16:23) in the 8180 doc.
It says 16:31 reserved.

> 		signal =(95-signal )*100/65;
> 		}
> priv->wstats.qual.level = signal;

What is the range of these fields anyway?  Some seem
to be 0-255 (-256+x dBm?), some 0-65 (65 best?), some
0-100 (percent?).

Ciao, ET.
-
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