Skip to contentSkip to conversation

bcm43xx-softmac broken on 2.6.20-rc2

PATCH Larry Finger 3 participants 4 messages Dec 24, 2006 – Dec 26, 2006

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

This is a heads-up for anyone wishing to use bcm43xx-softmac on Linus's git tree, which is now at v2.6.20-rc2. There are two serious bugs in that code. Fixes are found below.

The first bug is the result of changes in work queues. The second is the result of a typo that locks a mutex when it should unlock it.

These fixes have been pushed up stream, but neither has made it to Linus.

Larry
---

net/ieee80211/softmac/ieee80211softmac_assoc.c +2 -2
index eec1a1d..a824852 100644
@@ -167,7 +167,7 @@ static void
 ieee80211softmac_assoc_notify_scan(struct net_device *dev, int event_type, void *context)
 {
 	struct ieee80211softmac_device *mac = ieee80211_priv(dev);
-	ieee80211softmac_assoc_work((void*)mac);
+	ieee80211softmac_assoc_work(&mac->associnfo.work.work);
 }
 
 static void
@@ -177,7 +177,7 @@ ieee80211softmac_assoc_notify_auth(struc
 
 	switch (event_type) {
 	case IEEE80211SOFTMAC_EVENT_AUTHENTICATED:
-		ieee80211softmac_assoc_work((void*)mac);
+		ieee80211softmac_assoc_work(&mac->associnfo.work.work);
 		break;
 	case IEEE80211SOFTMAC_EVENT_AUTH_FAILED:
 	case IEEE80211SOFTMAC_EVENT_AUTH_TIMEOUT:
net/ieee80211/softmac/ieee80211softmac_wx.c +1 -1
Index: linux-2.6/net/ieee80211/softmac/ieee80211softmac_wx.c
===================================================================
@@ -463,7 +463,7 @@ ieee80211softmac_wx_get_genie(struct net
 			err = -E2BIG;
 	}
 	spin_unlock_irqrestore(&mac->lock, flags);
-	mutex_lock(&mac->associnfo.mutex);
+	mutex_unlock(&mac->associnfo.mutex);
 
 	return err;
 }
#1 lore raw
Quoted 3 lines · Larry Finger

This is a heads-up for anyone wishing to use bcm43xx-softmac on Linus's git tree, which is now at
v2.6.20-rc2. There are two serious bugs in that code. Fixes are found below.

For some reason your patch does not apply to stock 2.6.20-rc2, although I don't see why. Applying it by hand makes things compile though, and even fixes the problem I mentioned in my previous post:

http://www.spinics.net/lists/netdev/msg21906.html

Thanks!

Signature · 2 lines
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services
#2 lore raw
Quoted 8 lines · bert hubert
Quoted 3 lines · Larry Finger

This is a heads-up for anyone wishing to use bcm43xx-softmac on Linus's git tree, which is now at
v2.6.20-rc2. There are two serious bugs in that code. Fixes are found below.

For some reason your patch does not apply to stock 2.6.20-rc2, although I don't see why. Applying it by hand makes things compile though, and even fixes the problem I mentioned in my previous post:

The patch does not apply because your mailer is breaking the white space and substituting spaces for tabs.

Larry

#3 lore raw
Quoted 2 lines · Larry Finger

The patch does not apply because your mailer is breaking the white space and substituting spaces for tabs.

No, it does not apply because it was space-stuffed.

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."