]> err.no Git - linux-2.6/commitdiff
[PATCH] bcm43xx: associate on 'ifconfig up'
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 5 May 2006 16:38:27 +0000 (17:38 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 17 May 2006 18:53:19 +0000 (14:53 -0400)
I still need this hack to work around the fact that softmac doesn't
attempt to associate when we bring the device up...

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/bcm43xx/bcm43xx_main.c

index e2982a83ae424c8f7ea999239f4f61f70da2bab2..7ed18cad29f75632b6408e72bd258ec25af05eb6 100644 (file)
@@ -3271,6 +3271,9 @@ static int bcm43xx_init_board(struct bcm43xx_private *bcm)
        bcm43xx_sysfs_register(bcm);
        //FIXME: check for bcm43xx_sysfs_register failure. This function is a bit messy regarding unwinding, though...
 
+       /*FIXME: This should be handled by softmac instead. */
+       schedule_work(&bcm->softmac->associnfo.work);
+
        assert(err == 0);
 out:
        return err;
@@ -3946,9 +3949,6 @@ static int bcm43xx_resume(struct pci_dev *pdev)
 
        netif_device_attach(net_dev);
        
-       /*FIXME: This should be handled by softmac instead. */
-       schedule_work(&bcm->softmac->associnfo.work);
-
        dprintk(KERN_INFO PFX "Device resumed.\n");
 
        return 0;