All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] p54: Add quality output to iwlist and iwconfig
@ 2008-06-30 15:39 Larry.Finger
  2008-06-30 15:42 ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Larry.Finger @ 2008-06-30 15:39 UTC (permalink / raw)
  To: linville, flamingice; +Cc: linux-wireless

The p54 driver family reports a quality of 0 in iwconfig and iwlist
output. This patch calculates a quality number as a percentage of the
rssi to the maximum signal of 127 reported as the maximum signal.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---

Index: wireless-testing/drivers/net/wireless/p54/p54common.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/p54/p54common.c
+++ wireless-testing/drivers/net/wireless/p54/p54common.c
@@ -357,6 +357,7 @@ static void p54_rx_data(struct ieee80211
 
 	rx_status.signal = hdr->rssi;
 	/* XX correct? */
+	rx_status.qual = (100 * hdr->rssi) / 127;
 	rx_status.rate_idx = hdr->rate & 0xf;
 	rx_status.freq = freq;
 	rx_status.band = IEEE80211_BAND_2GHZ;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-30 16:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-30 15:39 [PATCH] p54: Add quality output to iwlist and iwconfig Larry.Finger
2008-06-30 15:42 ` Johannes Berg
2008-06-30 16:07   ` Larry Finger
2008-06-30 16:13     ` Stefanik Gábor
2008-06-30 16:48       ` Larry Finger
2008-06-30 16:20     ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.