Skip to content

Commit

Permalink
[PATCH] bcm43xx - set correct value in mac_suspended for ifdown/ifup …
Browse files Browse the repository at this point in the history
…sequence

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.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-Off-By: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Larry Finger authored and John W. Linville committed Aug 29, 2006
1 parent efa7e06 commit 653d5b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/bcm43xx/bcm43xx_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3363,6 +3363,8 @@ static void prepare_priv_for_init(struct bcm43xx_private *bcm)
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));

Expand Down

0 comments on commit 653d5b5

Please sign in to comment.