libertas: add quality information to getscantable

Marcelo Tosatti mtosatti at redhat.unroutablecom
Tue Nov 28 02:56:39 EST 2006


Commit:     e5a74acc9bef47f7d950b3fd4600d46117fff4d5
Parent:     0d93e87194edf7a0a3942f004c9e789c32910f4a
commit e5a74acc9bef47f7d950b3fd4600d46117fff4d5
Author:     Marcelo Tosatti <mtosatti at redhat.com>
AuthorDate: Thu Nov 16 23:43:32 2006 -0200
Commit:     Marcelo Tosatti <mtosatti at redhat.com>
CommitDate: Thu Nov 16 23:43:32 2006 -0200

    libertas: add quality information to getscantable
    
    Thus making getscanlist from wlanconfig redundant.
    
    Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
---
 drivers/net/wireless/libertas/wlan_debugfs.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/libertas/wlan_debugfs.c b/drivers/net/wireless/libertas/wlan_debugfs.c
index d98ecf8..020e70a 100644
--- a/drivers/net/wireless/libertas/wlan_debugfs.c
+++ b/drivers/net/wireless/libertas/wlan_debugfs.c
@@ -71,7 +71,7 @@ static ssize_t libertas_getscantable(str
 	pos += snprintf(buf+pos, len-pos,
 			"---------------------------------------\n");
 	pos += snprintf(buf+pos, len-pos,
-		"# | ch  | ss  |       bssid       |   cap    |    TSF   |   SSID\n");
+		"# | ch  | ss  |       bssid       |   cap    |    TSF   | Qual | SSID \n");
 	pos += snprintf(buf+pos, len-pos,
 		"---------------------------------------");
 	pos += snprintf(buf+pos, len-pos,
@@ -95,7 +95,11 @@ static ssize_t libertas_getscantable(str
 				pbssinfo->Cap.Privacy ? 'P' : ' ',
 				pbssinfo->Cap.SpectrumMgmt ? 'S' : ' ');
 		pos += snprintf(buf+pos, len-pos, " %08llx |", pbssinfo->networkTSF);
+		pos += snprintf(buf+pos, len-pos, " %d |", 
+			SCAN_RSSI(priv->adapter->ScanTable[numScansDone].Rssi));
+
 		pos += snprintf(buf+pos, len-pos, " %s\n", pbssinfo->Ssid.Ssid);
+
 		numScansDone++;
 	}
 


More information about the Commits-kernel mailing list