netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/4] Try 2: Modify adm8211-d80211 to use wireless statistics
@ 2006-08-24  3:02 Larry Finger
  0 siblings, 0 replies; only message in thread
From: Larry Finger @ 2006-08-24  3:02 UTC (permalink / raw)
  To: Jiri Benc; +Cc: John Linville, netdev

These patches modify adm8211-d80211 to use the wireless statics added in patch 1.

Signed-Off-By: Larry Finger@lwfinger.net>

======================================


diff --git a/drivers/net/wireless/d80211/adm8211/adm8211.c 
b/drivers/net/wireless/d80211/adm8211/adm8211.c
index dcabeab..5f13e9e 100644
--- a/drivers/net/wireless/d80211/adm8211/adm8211.c
+++ b/drivers/net/wireless/d80211/adm8211/adm8211.c
@@ -74,6 +74,8 @@ #define PLCP_SIGNAL_2M		0x14
  #define PLCP_SIGNAL_5M5		0x37
  #define PLCP_SIGNAL_11M		0x6e

+#define ADM8211_RX_MAX_SSI	100
+
  struct adm8211_tx_hdr {
  	u8 da[6];
  	u8 signal; /* PLCP signal / TX rate in 100 Kbps */
@@ -558,6 +560,14 @@ static void adm8211_interrupt_rci(struct
  			if (dev->flags & IFF_PROMISC)
  				skb_trim(skb, skb->len - FCS_LEN);

+
+/* FIXME: The following set of assignments supply additional data for wireless statistics. The
+	  necessary quantities are (1) the "noise" value in dBm, and (2) the "signal" value in dBm.
+	  The present code supplies dummy values for these quantities. */
+
+			rx_status.noise = -85;   /* FIXME */
+			rx_status.signal = rx_status.ssi - ADM8211_RX_MAX_SSI; /* FIXME */
+
  			ieee80211_rx_irqsafe(dev, skb, &rx_status);
  		}

@@ -2047,6 +2057,7 @@ #endif
  	hw->get_tsf = adm8211_get_tsft;
  	hw->get_tx_stats = adm8211_get_tx_stats;
  	hw->queues = 1;		// ADM8211C supports more, maybe ADM8211B
+	hw->maxssi = ADM8211_RX_MAX_SSI;// FIXME - This is an approximation

  	priv->retry_limit = 3;
  	priv->ant_power = 0x40;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-24  3:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24  3:02 [PATCH 3/4] Try 2: Modify adm8211-d80211 to use wireless statistics Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).