[PATCH] bcm43xx: fix mac_suspend refcount
authorMichael Buesch <mb@bu3sch.de>
Wed, 28 Jun 2006 18:35:17 +0000 (20:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Jul 2006 22:19:14 +0000 (18:19 -0400)
This fixes mac_suspend reference counting for
ifconfig up
ifconfig down
ifconfig up

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/bcm43xx/bcm43xx_main.c

index acf567c2e220abfe620294ea894432625374708e..1c04722edaa087990ba193c4d955e711ca9f5161 100644 (file)
@@ -3320,6 +3320,8 @@ static int bcm43xx_init_board(struct bcm43xx_private *bcm)
        mutex_lock(&bcm->mutex);
        bcm43xx_set_status(bcm, BCM43xx_STAT_INITIALIZING);
 
+       bcm->mac_suspended = 1;
+
        err = bcm43xx_pctl_set_crystal(bcm, 1);
        if (err)
                goto out;
@@ -3832,7 +3834,6 @@ static int bcm43xx_init_private(struct bcm43xx_private *bcm,
        bcm->softmac->set_channel = bcm43xx_ieee80211_set_chan;
 
        bcm->irq_savedstate = BCM43xx_IRQ_INITIAL;
-       bcm->mac_suspended = 1;
        bcm->pci_dev = pci_dev;
        bcm->net_dev = net_dev;
        bcm->bad_frames_preempt = modparam_bad_frames_preempt;