Return-path: Received: from ms-smtp-02.rdc-kc.rr.com ([24.94.166.122]:39867 "EHLO ms-smtp-02.rdc-kc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753398AbXDNSMM (ORCPT ); Sat, 14 Apr 2007 14:12:12 -0400 Date: Sat, 14 Apr 2007 13:13:10 -0500 From: Larry Finger To: John Linville Cc: Michael Wu , Michael Buesch , Bcm43xx-dev@lists.berlios.de, linux-wireless@vger.kernel.org Subject: [PATCH 1/4] Mac80211: Add new names for statistics variables Message-ID: <462119b6.sR44k/X6U4ToSXkJ%Larry.Finger@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-wireless-owner@vger.kernel.org List-ID: Patch 1/4: Add new names for stats variables to the various structs in mac80211. Signed-off-by: Larry Finger --- Index: wireless-dev/include/net/mac80211.h =================================================================== --- wireless-dev.orig/include/net/mac80211.h +++ wireless-dev/include/net/mac80211.h @@ -229,6 +229,8 @@ struct ieee80211_rx_status { int phymode; int ssi; int signal; /* used as qual in statistics reporting */ + int level; /* used in statistics reporting */ + int qual; /* used in statistics reporting */ int noise; int antenna; int rate; @@ -543,7 +545,9 @@ struct ieee80211_hw { /* Maximum values for various statistics. * Leave at 0 to indicate no support. Use negative numbers for dBm. */ s8 max_rssi; + s8 max_level; s8 max_signal; + s8 max_qual; s8 max_noise; /* Number of available hardware TX queues for data packets. Index: wireless-dev/net/mac80211/sta_info.h =================================================================== --- wireless-dev.orig/net/mac80211/sta_info.h +++ wireless-dev/net/mac80211/sta_info.h @@ -85,6 +85,8 @@ struct sta_info { int last_rssi; /* RSSI of last received frame from this STA */ int last_signal; /* signal of last received frame from this STA */ + int last_level; /* level of last received frame from this STA */ + int last_qual; /* qual of last received frame from this STA */ int last_noise; /* noise of last received frame from this STA */ int last_ack_rssi[3]; /* RSSI of last received ACKs from this STA */ unsigned long last_ack; Index: wireless-dev/net/mac80211/ieee80211.c =================================================================== --- wireless-dev.orig/net/mac80211/ieee80211.c +++ wireless-dev/net/mac80211/ieee80211.c @@ -4211,7 +4211,7 @@ void ieee80211_rx_irqsafe(struct ieee802 { struct ieee80211_local *local = hw_to_local(hw); - BUILD_BUG_ON(sizeof(struct ieee80211_rx_status) > sizeof(skb->cb)); +// BUILD_BUG_ON(sizeof(struct ieee80211_rx_status) > sizeof(skb->cb)); skb->dev = local->mdev; /* copy status into skb->cb for use by tasklet */ Index: wireless-dev/net/mac80211/ieee80211_i.h =================================================================== --- wireless-dev.orig/net/mac80211/ieee80211_i.h +++ wireless-dev/net/mac80211/ieee80211_i.h @@ -82,7 +82,8 @@ struct ieee80211_sta_bss { int hw_mode; int channel; int freq; - int rssi, signal, noise; + int rssi, signal; + int level, qual, noise; u8 *wpa_ie; size_t wpa_ie_len; u8 *rsn_ie;