This patch adds an low-level driver independent entry to read the TSF value into the debugfs of mac80211. This makes debugging the IBSS handling of wifi drivers easier. Signed-off-by: Alina Friedrichsen <x-alina@xxxxxxx> --- diff -urN compat-wireless-2009-01-22.orig/net/mac80211/debugfs.c compat-wireless-2009-01-22/net/mac80211/debugfs.c --- compat-wireless-2009-01-22.orig/net/mac80211/debugfs.c 2009-01-22 20:51:46.000000000 +0100 +++ compat-wireless-2009-01-22/net/mac80211/debugfs.c 2009-01-23 03:49:45.000000000 +0100 @@ -61,6 +61,8 @@ local->wep_iv & 0xffffff); DEBUGFS_READONLY_FILE(rate_ctrl_alg, 100, "%s", local->rate_ctrl ? local->rate_ctrl->ops->name : "<unset>"); +DEBUGFS_READONLY_FILE(tsf, 20, "%#018llx", + (unsigned long long) (local->ops->get_tsf ? local->ops->get_tsf(local_to_hw(local)) : 0)); /* statistics stuff */ @@ -202,6 +204,7 @@ DEBUGFS_ADD(long_retry_limit); DEBUGFS_ADD(total_ps_buffered); DEBUGFS_ADD(wep_iv); + DEBUGFS_ADD(tsf); statsd = debugfs_create_dir("statistics", phyd); local->debugfs.statistics = statsd; @@ -255,6 +258,7 @@ DEBUGFS_DEL(long_retry_limit); DEBUGFS_DEL(total_ps_buffered); DEBUGFS_DEL(wep_iv); + DEBUGFS_DEL(tsf); DEBUGFS_STATS_DEL(transmitted_fragment_count); DEBUGFS_STATS_DEL(multicast_transmitted_frame_count); diff -urN compat-wireless-2009-01-22.orig/net/mac80211/ieee80211_i.h compat-wireless-2009-01-22/net/mac80211/ieee80211_i.h --- compat-wireless-2009-01-22.orig/net/mac80211/ieee80211_i.h 2009-01-22 20:51:46.000000000 +0100 +++ compat-wireless-2009-01-22/net/mac80211/ieee80211_i.h 2009-01-23 03:55:44.000000000 +0100 @@ -744,6 +744,7 @@ struct dentry *long_retry_limit; struct dentry *total_ps_buffered; struct dentry *wep_iv; + struct dentry *tsf; struct dentry *statistics; struct local_debugfsdentries_statsdentries { struct dentry *transmitted_fragment_count; -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html