<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-7">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#b8b8b8>
<DIV><FONT face=Arial size=2>I noticed a mismatch on the values of signal and 
silence&nbsp;in /proc/net/hostap/&lt;if&gt;/&lt;client_mac&gt; and the values 
listed by the iwlist &lt;if&gt; scan when working on master mode. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is what i get from 
/proc/net/hostap/&lt;if&gt;/&lt;client_mac&gt;:</FONT></DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial size=2>buffer_count=0<BR>last_rx: silence=165 signal=173 
rate=20<BR>tx_rate=110</FONT></DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>signal and silence are ok. signal&nbsp;= 173&nbsp;- 
256 = -83dBm and silence&nbsp;= 165 - 256 = -91dBm which seem very 
normal.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>...and this is what i get from iwlist &lt;if&gt; 
scan:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cell 01 - 
Address:&nbsp;XX:XX:XX:XX:XX:XX</FONT></DIV>
<DIV><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Mode:Managed<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Quality:229/92&nbsp; Signal level:-32 dBm&nbsp; Noise level:-34 dBm</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Examining the code, i noticed that&nbsp;the values 
in the /proc/net/hostap/&lt;if&gt;/&lt;client_mac&gt; are in dBm, previously 
converted&nbsp;with&nbsp;HFA384X_RSSI_LEVEL_TO_dBm. But when they are retreived 
in order to get passed to wireless tools, they get converted again 
with&nbsp;HFA384X_LEVEL_TO_dBm. This is a bug because the values are already in 
dBm and they are mistakenly treated as if they were in the range 27-154. The 
same exists in quality update procedure&nbsp;so it must affect iwspy too. I 
attach a patch i made which fixes the problem with signal and noise levels. I 
also rewrote the link quality algorithmn&nbsp;to work with dBm values when 
scanning for associated clients. I've tested the patch on 1.7.4 and 1.3.6 F/W. I 
don't know if it works for 1.8.x. The card is a Netgear 
MA311.</FONT></DIV></BODY></HTML>