* bcm43xx-softmac broken on 2.6.20-rc2
@ 2006-12-24 15:51 Larry Finger
2006-12-26 15:45 ` bert hubert
0 siblings, 1 reply; 4+ messages in thread
From: Larry Finger @ 2006-12-24 15:51 UTC (permalink / raw)
To: Broadcom Linux, netdev; +Cc: LKML, torvalds
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
---
diff --git a/net/ieee80211/softmac/ieee80211softmac_assoc.c
b/net/ieee80211/softmac/ieee80211softmac_assoc.c
index eec1a1d..a824852 100644
--- a/net/ieee80211/softmac/ieee80211softmac_assoc.c
+++ b/net/ieee80211/softmac/ieee80211softmac_assoc.c
@@ -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:
Index: linux-2.6/net/ieee80211/softmac/ieee80211softmac_wx.c
===================================================================
--- linux-2.6.orig/net/ieee80211/softmac/ieee80211softmac_wx.c
+++ 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;
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: bcm43xx-softmac broken on 2.6.20-rc2
2006-12-24 15:51 bcm43xx-softmac broken on 2.6.20-rc2 Larry Finger
@ 2006-12-26 15:45 ` bert hubert
[not found] ` <20061226154524.GB12583-Q4cIvbmc/GjIwqSPmO0L4w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: bert hubert @ 2006-12-26 15:45 UTC (permalink / raw)
To: Larry Finger; +Cc: Broadcom Linux, netdev, LKML, torvalds
On Sun, Dec 24, 2006 at 09:51:50AM -0600, Larry Finger wrote:
> 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!
--
http://www.PowerDNS.com Open source, database driven DNS Software
http://netherlabs.nl Open and Closed source services
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bcm43xx-softmac broken on 2.6.20-rc2
[not found] ` <20061226154524.GB12583-Q4cIvbmc/GjIwqSPmO0L4w@public.gmane.org>
@ 2006-12-26 16:24 ` Larry Finger
2006-12-26 16:28 ` Andreas Schwab
0 siblings, 1 reply; 4+ messages in thread
From: Larry Finger @ 2006-12-26 16:24 UTC (permalink / raw)
To: bert hubert, Larry Finger, Broadcom Linux, netdev, LKML,
torvalds-3NddpPZAyC0
bert hubert wrote:
> On Sun, Dec 24, 2006 at 09:51:50AM -0600, Larry Finger wrote:
>> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bcm43xx-softmac broken on 2.6.20-rc2
2006-12-26 16:24 ` Larry Finger
@ 2006-12-26 16:28 ` Andreas Schwab
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2006-12-26 16:28 UTC (permalink / raw)
To: Larry Finger; +Cc: bert hubert, Broadcom Linux, netdev, LKML, torvalds
Larry Finger <larry.finger@lwfinger.net> writes:
> 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.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
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."
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-26 16:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-24 15:51 bcm43xx-softmac broken on 2.6.20-rc2 Larry Finger
2006-12-26 15:45 ` bert hubert
[not found] ` <20061226154524.GB12583-Q4cIvbmc/GjIwqSPmO0L4w@public.gmane.org>
2006-12-26 16:24 ` Larry Finger
2006-12-26 16:28 ` Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).