From: Michael Buesch Date: Wed, 28 Jun 2006 18:35:17 +0000 (+0200) Subject: [PATCH] bcm43xx: fix mac_suspend refcount X-Git-Tag: v2.6.19-rc1~1263^2~109^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3234faa8abe0c3d6da12cc4a38ce790134c92564;p=linux-2.6-omap-h63xx.git [PATCH] bcm43xx: fix mac_suspend refcount This fixes mac_suspend reference counting for ifconfig up ifconfig down ifconfig up Signed-off-by: Michael Buesch Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c index acf567c2e22..1c04722edaa 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c @@ -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;