Skip to contentSkip to conversation

bcm43xx: fix mac_suspend refcount

PATCH New Michael Buesch 1 participant 1 message Jun 28, 2006

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

PATCH 1/1 bcm43xx: fix mac_suspend refcount

This fixes mac_suspend reference counting for
ifconfig up
ifconfig down
ifconfig up

drivers/net/wireless/bcm43xx/bcm43xx_main.c +2 -1
Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================
@@ -3288,6 +3288,8 @@
 	bcm43xx_lock_noirq(bcm);
 	bcm43xx_set_status(bcm, BCM43xx_STAT_INITIALIZING);
 
+	bcm->mac_suspended = 1;
+
 	err = bcm43xx_pctl_set_crystal(bcm, 1);
 	if (err)
 		goto out;
@@ -3793,7 +3795,6 @@
 	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;
Signature · 1 line
Greetings Michael.