Skip to contentSkip to conversation

d80211: fix get_tsf call

PATCH In review Hong Liu 2 participants 2 messages Dec 20, 2006

Subsystems (2)
lore
Share & tools
lore

Hong Liu

author
#0 lore raw

PATCH 1/1 d80211: fix get_tsf call

get_tsf passes the wrong pointer to driver.

net/d80211/ieee80211_sta.c +1 -1
index 3b55427..e48295e 100644
@@ -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)) {
#1 lore raw
Quoted 1 line · Hong Liu

get_tsf passes the wrong pointer to driver.

Already fixed, see commit 0690925f2f99f6d43322ec8507eaabdcf1435c3c.

Thanks,

Jiri

Signature · 2 lines
Jiri Benc
SUSE Labs