DORMANTno replies

[PATCH Take 2] bcm43xx-softmac - set correct value in mac_suspended for ifdown/ifup sequence]

From: Larry Finger <hidden>
Date: 2006-08-23 15:04:26

John,

This is a better solution of the issue. Please disregard the patch sent yesterday.

Larry

-------------------------------

When bcm43xx-softmac is given an ifdown/ifup sequence, the value for bcm->mac_suspended ends up
wrong, which leads to a large number of assert(bcm->mac_suspended>=0) messages. This one-line patch
fixes this problem.

I think the following is the correct fix for the issue.
It is already in the d80211 branch. (Seems like it got lost somehow).

Signed-off-by: Michael Buesch <redacted>
Signed-Off-By: Larry Finger <redacted>

Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================
--- wireless-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_main.c	2006-08-23 10:00:27.000000000 +0200
+++ wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c	2006-08-23 10:01:45.000000000 +0200
@@ -3349,6 +3349,8 @@
  	memset(bcm->dma_reason, 0, sizeof(bcm->dma_reason));
  	bcm->irq_savedstate = BCM43xx_IRQ_INITIAL;

+	bcm->mac_suspended = 1;
+
  	/* Noise calculation context */
  	memset(&bcm->noisecalc, 0, sizeof(bcm->noisecalc));

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