net: wireless: bcmdhd: Turn OFF wlan power if interface UP fails
Dmitry Shmidt [Mon, 30 Apr 2012 23:34:01 +0000 (16:34 -0700)]
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

drivers/net/wireless/bcmdhd/dhd_linux.c

index 387d43d..9873897 100644 (file)
@@ -2449,6 +2449,9 @@ dhd_open(struct net_device *net)
 
        OLD_MOD_INC_USE_COUNT;
 exit:
+       if (ret)
+               dhd_stop(net);
+
        DHD_OS_WAKE_UNLOCK(&dhd->pub);
        return ret;
 }