Thread (1 message) 1 message, 1 author, 2007-10-04

Re: [PATCH] ieee80211_if_set_type: make check for master dev more explicit

From: Michael Wu <hidden>
Date: 2007-10-04 21:26:11
Also in: linux-wireless

On Thursday 04 October 2007 14:09, John W. Linville wrote:
quoted hunk
diff --git a/net/mac80211/ieee80211_iface.c
b/net/mac80211/ieee80211_iface.c index be7e77f..6607b80 100644
--- a/net/mac80211/ieee80211_iface.c
+++ b/net/mac80211/ieee80211_iface.c
@@ -106,7 +106,7 @@ void ieee80211_if_set_type(struct net_device *dev, int
type) * which already has a hard_start_xmit routine assigned
 	 * which must not be changed.
 	 */
-	if (!dev->hard_start_xmit)
+	if (dev->type != ARPHRD_IEEE80211)
The standard way of checking for the master device is
dev == sdata->local->mdev

wme.c doesn't quite follow this but that code needs to die anyway.

This does look nicer than the other patch.

-Michael Wu

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help