From: Larry Finger <Larry.Finger@lwfinger.net>
To: Jiri Benc <jbenc@suse.cz>
Cc: John Linville <linville@tuxdriver.com>, netdev@vger.kernel.org
Subject: [PATCH 3/4] Try 2: Modify adm8211-d80211 to use wireless statistics
Date: Wed, 23 Aug 2006 22:02:25 -0500 [thread overview]
Message-ID: <44ED16C1.2020400@lwfinger.net> (raw)
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;
reply other threads:[~2006-08-24 3:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44ED16C1.2020400@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=jbenc@suse.cz \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).