Re: 2.6.21-rc5-mm3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Berg
Date: Friday, March 30, 2007 - 11:58 am

On Fri, 2007-03-30 at 13:23 -0400, Valdis.Kletnieks@vt.edu wrote:

Yeah, my mistake. I posted a patch to fix it to wireless-dev but John is
on vacation, below is a copy.

If you want to put it anywhere here's my
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>

---
 net/mac80211/debugfs.c     |   20 ++++++++++----------
 net/mac80211/debugfs_sta.c |    4 ++++
 net/mac80211/ieee80211_i.h |    4 ++--
 net/mac80211/sta_info.h    |    2 ++
 4 files changed, 18 insertions(+), 12 deletions(-)

--- wireless-dev.orig/net/mac80211/debugfs.c	2007-03-28 22:57:03.937731699 +0200
+++ wireless-dev/net/mac80211/debugfs.c	2007-03-28 22:59:12.287731699 +0200
@@ -246,12 +246,6 @@ DEBUGFS_STATS_FILE(rx_handlers_fragments
 		   local->rx_handlers_fragments);
 DEBUGFS_STATS_FILE(tx_status_drop, 20, "%u",
 		   local->tx_status_drop);
-#endif
-
-DEBUGFS_DEVSTATS_FILE(dot11ACKFailureCount);
-DEBUGFS_DEVSTATS_FILE(dot11RTSFailureCount);
-DEBUGFS_DEVSTATS_FILE(dot11FCSErrorCount);
-DEBUGFS_DEVSTATS_FILE(dot11RTSSuccessCount);
 
 static ssize_t stats_wme_rx_queue_read(struct file *file,
 				       char __user *userbuf,
@@ -292,6 +286,12 @@ static const struct file_operations stat
 	.read = stats_wme_tx_queue_read,
 	.open = mac80211_open_file_generic,
 };
+#endif
+
+DEBUGFS_DEVSTATS_FILE(dot11ACKFailureCount);
+DEBUGFS_DEVSTATS_FILE(dot11RTSFailureCount);
+DEBUGFS_DEVSTATS_FILE(dot11FCSErrorCount);
+DEBUGFS_DEVSTATS_FILE(dot11RTSSuccessCount);
 
 
 void debugfs_hw_add(struct ieee80211_local *local)
@@ -360,13 +360,13 @@ void debugfs_hw_add(struct ieee80211_loc
 	DEBUGFS_STATS_ADD(rx_expand_skb_head2);
 	DEBUGFS_STATS_ADD(rx_handlers_fragments);
 	DEBUGFS_STATS_ADD(tx_status_drop);
+	DEBUGFS_STATS_ADD(wme_tx_queue);
+	DEBUGFS_STATS_ADD(wme_rx_queue);
 #endif
 	DEBUGFS_STATS_ADD(dot11ACKFailureCount);
 	DEBUGFS_STATS_ADD(dot11RTSFailureCount);
 	DEBUGFS_STATS_ADD(dot11FCSErrorCount);
 	DEBUGFS_STATS_ADD(dot11RTSSuccessCount);
-	DEBUGFS_STATS_ADD(wme_tx_queue);
-	DEBUGFS_STATS_ADD(wme_rx_queue);
 }
 
 void debugfs_hw_del(struct ieee80211_local *local)
@@ -419,13 +419,13 @@ void debugfs_hw_del(struct ieee80211_loc
 	DEBUGFS_STATS_DEL(rx_expand_skb_head2);
 	DEBUGFS_STATS_DEL(rx_handlers_fragments);
 	DEBUGFS_STATS_DEL(tx_status_drop);
+	DEBUGFS_STATS_DEL(wme_tx_queue);
+	DEBUGFS_STATS_DEL(wme_rx_queue);
 #endif
 	DEBUGFS_STATS_DEL(dot11ACKFailureCount);
 	DEBUGFS_STATS_DEL(dot11RTSFailureCount);
 	DEBUGFS_STATS_DEL(dot11FCSErrorCount);
 	DEBUGFS_STATS_DEL(dot11RTSSuccessCount);
-	DEBUGFS_STATS_DEL(wme_tx_queue);
-	DEBUGFS_STATS_DEL(wme_rx_queue);
 
 	debugfs_remove(local->debugfs.statistics);
 	local->debugfs.statistics = NULL;
--- wireless-dev.orig/net/mac80211/ieee80211_i.h	2007-03-28 22:58:07.635731699 +0200
+++ wireless-dev/net/mac80211/ieee80211_i.h	2007-03-28 22:58:20.591731699 +0200
@@ -647,13 +647,13 @@ struct ieee80211_local {
 			struct dentry *rx_expand_skb_head2;
 			struct dentry *rx_handlers_fragments;
 			struct dentry *tx_status_drop;
+			struct dentry *wme_tx_queue;
+			struct dentry *wme_rx_queue;
 #endif
 			struct dentry *dot11ACKFailureCount;
 			struct dentry *dot11RTSFailureCount;
 			struct dentry *dot11FCSErrorCount;
 			struct dentry *dot11RTSSuccessCount;
-			struct dentry *wme_tx_queue;
-			struct dentry *wme_rx_queue;
 		} stats;
 		struct dentry *stations;
 		struct dentry *keys;
--- wireless-dev.orig/net/mac80211/debugfs_sta.c	2007-03-28 22:59:49.973731699 +0200
+++ wireless-dev/net/mac80211/debugfs_sta.c	2007-03-28 23:00:22.353731699 +0200
@@ -222,8 +222,10 @@ void ieee80211_sta_debugfs_add(struct st
 	DEBUGFS_ADD(last_ack_ms);
 	DEBUGFS_ADD(inactive_ms);
 	DEBUGFS_ADD(last_seq_ctrl);
+#ifdef CONFIG_MAC80211_DEBUG_COUNTERS
 	DEBUGFS_ADD(wme_rx_queue);
 	DEBUGFS_ADD(wme_tx_queue);
+#endif
 }
 
 void ieee80211_sta_debugfs_remove(struct sta_info *sta)
@@ -234,8 +236,10 @@ void ieee80211_sta_debugfs_remove(struct
 	DEBUGFS_DEL(last_ack_ms);
 	DEBUGFS_DEL(inactive_ms);
 	DEBUGFS_DEL(last_seq_ctrl);
+#ifdef CONFIG_MAC80211_DEBUG_COUNTERS
 	DEBUGFS_DEL(wme_rx_queue);
 	DEBUGFS_DEL(wme_tx_queue);
+#endif
 
 	debugfs_remove(sta->debugfs.dir);
 	sta->debugfs.dir = NULL;
--- wireless-dev.orig/net/mac80211/sta_info.h	2007-03-28 23:01:03.437731699 +0200
+++ wireless-dev/net/mac80211/sta_info.h	2007-03-28 23:01:15.009731699 +0200
@@ -124,8 +124,10 @@ struct sta_info {
 		struct dentry *last_ack_ms;
 		struct dentry *inactive_ms;
 		struct dentry *last_seq_ctrl;
+#ifdef CONFIG_MAC80211_DEBUG_COUNTERS
 		struct dentry *wme_rx_queue;
 		struct dentry *wme_tx_queue;
+#endif
 	} debugfs;
 #endif
 };


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.21-rc5-mm3, Andrew Morton, (Fri Mar 30, 1:05 am)
Re: 2.6.21-rc5-mm3, Rafael J. Wysocki, (Fri Mar 30, 4:00 am)
Re: 2.6.21-rc5-mm3, Michal Piotrowski, (Fri Mar 30, 9:31 am)
Re: 2.6.21-rc5-mm3, Dmitry Torokhov, (Fri Mar 30, 9:38 am)
Re: 2.6.21-rc5-mm3, Ingo Molnar, (Fri Mar 30, 9:55 am)
Re: 2.6.21-rc5-mm3, Andrew Morton, (Fri Mar 30, 9:59 am)
Re: 2.6.21-rc5-mm3, Michal Piotrowski, (Fri Mar 30, 10:19 am)
Re: 2.6.21-rc5-mm3, Valdis.Kletnieks, (Fri Mar 30, 10:23 am)
Re: 2.6.21-rc5-mm3, Johannes Berg, (Fri Mar 30, 11:58 am)
2.6.21-rc5-mm3 - cpuidle, acpi, and C-states, Valdis.Kletnieks, (Sat Mar 31, 1:05 am)
2.6.21-rc5-mm3: Why was my vioc cleanup patch dropped?, Adrian Bunk, (Sat Mar 31, 12:25 pm)
Re: [2.6 patch] remove the config option for the cs5530a_w ..., Jeremy Fitzhardinge, (Sat Mar 31, 2:05 pm)
Re: [2.6 patch] remove the config option for the cs5530a_w ..., Jeremy Fitzhardinge, (Sat Mar 31, 2:17 pm)
Re: 2.6.21-rc5-mm3 - no boot, &quot;address not 2M aligned&quot;, Eric W. Biederman, (Sat Mar 31, 11:15 pm)
Re: 2.6.21-rc5-mm3, Michal Piotrowski, (Sun Apr 1, 9:00 am)
Re: 2.6.21-rc5-mm3, Andrew Morton, (Sun Apr 1, 12:03 pm)
Re: 2.6.21-rc5-mm3, Rafael J. Wysocki, (Sun Apr 1, 1:39 pm)
Re: 2.6.21-rc5-mm3, Rafael J. Wysocki, (Sun Apr 1, 1:56 pm)
Re: 2.6.21-rc5-mm3, Rafael J. Wysocki, (Sun Apr 1, 2:59 pm)
[PATCH 1/2] x86_64: Reflect the relocatability of the kern ..., Eric W. Biederman, (Sun Apr 22, 10:12 pm)
[PATCH 2/2] x86_64: Remove CONFIG_PHYSICAL_START and CONFI ..., Eric W. Biederman, (Sun Apr 22, 10:15 pm)
Re: [PATCH 2/2] x86_64: Remove CONFIG_PHYSICAL_START and C ..., Eric W. Biederman, (Sun Apr 22, 11:17 pm)
Re: [PATCH 1/2] x86_64: Reflect the relocatability of the ..., Eric W. Biederman, (Tue Apr 24, 12:21 am)