public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Hong Liu <hong.liu@intel•com>
To: Jiri Benc <jbenc@suse•cz>
Cc: "John W. Linville" <linville@tuxdriver•com>,
	netdev <netdev@vger•kernel.org>
Subject: [PATCH] d80211: fix get_tsf call
Date: Wed, 20 Dec 2006 16:04:25 +0800	[thread overview]
Message-ID: <1166601865.22609.1.camel@devlinux-hong> (raw)

get_tsf passes the wrong pointer to driver.


Signed-off-by: Hong Liu <hong.liu@intel•com>

diff --git a/net/d80211/ieee80211_sta.c b/net/d80211/ieee80211_sta.c
index 3b55427..e48295e 100644
--- a/net/d80211/ieee80211_sta.c
+++ b/net/d80211/ieee80211_sta.c
@@ -2482,7 +2482,7 @@ #ifdef CONFIG_D80211_IBSS_DEBUG
 		static unsigned long last_tsf_debug = 0;
 		u64 tsf;
 		if (local->ops->get_tsf)
-			tsf = local->ops->get_tsf(local->mdev);
+			tsf = local->ops->get_tsf(local_to_hw(local));
 		else
 			tsf = -1LLU;
 		if (time_after(jiffies, last_tsf_debug + 5 * HZ)) {

             reply	other threads:[~2006-12-20  8:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-20  8:04 Hong Liu [this message]
2006-12-20 10:15 ` [PATCH] d80211: fix get_tsf call Jiri Benc

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=1166601865.22609.1.camel@devlinux-hong \
    --to=hong.liu@intel$(echo .)com \
    --cc=jbenc@suse$(echo .)cz \
    --cc=linville@tuxdriver$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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