Search Linux Wireless

Re: [rtl8185] driver working but some probs

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

 



> > 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..
>

True, the datasheet is not consistent.
However the last reference code I have from Realtek is

signal=((*(priv->rxringtail+1))& (0xff0000))>>16;
signal=(signal&0xfe)>>1;	// Modify by hikaru 6.6
<snip>				
if(!rtl8180_IsWirelessBMode(stats.rate) )
	{ // OFDM rate.
		if(signal>90)
			signal=90;
		else if(signal<25)
			signal=25;
		signal = (90-signal)*100/65;
	}else{ // CCK rate.
		if(signal>95)
			signal = 95;
		else if(signal<30)
			signal = 30;
		signal =(95-signal )*100/65;
		}
priv->wstats.qual.level = signal;

Similar to rtl8187 this look at AGC, not RSSI, field to extract signal
strength information.

Andrea
-
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