Skip to content

Commit

Permalink
[PATCH] bcm43xx: fix mac_suspend refcount
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Buesch authored and John W. Linville committed Jul 27, 2006
1 parent b8e7cdb commit 3234faa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/bcm43xx/bcm43xx_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3234faa

Please sign in to comment.