Skip to contentSkip to conversation

d80211: Fix passing of invalid pointer

PATCH New Michael Buesch 1 participant 1 message Dec 13, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 d80211: Fix passing of invalid pointer

ieee80211_hw pointers have to be passed to ops->set_key() and ops->get_tsf().

net/d80211/ieee80211_iface.c +2 -2
Index: jbenc-dscape.git/net/d80211/ieee80211_iface.c
===================================================================
@@ -228,8 +228,8 @@ void ieee80211_if_reinit(struct net_devi
 		 * really much point in disabling the keys at this point. */
 		memset(addr, 0xff, ETH_ALEN);
 		if (local->ops->set_key)
-			local->ops->set_key(dev, DISABLE_KEY, addr,
-					   local->keys[i], 0);
+			local->ops->set_key(local_to_hw(local), DISABLE_KEY, addr,
+					    local->keys[i], 0);
 #endif
 		ieee80211_key_free(sdata->keys[i]);
 	}
net/d80211/ieee80211_sta.c +1 -1
Index: jbenc-dscape.git/net/d80211/ieee80211_sta.c
===================================================================
@@ -1365,7 +1365,7 @@ static void ieee80211_rx_bss_info(struct
 		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)) {
Signature · 1 line
Greetings Michael.