net: wireless: bcm4329: Skip dhd_bus_stop() if bus is already down
authorDmitry Shmidt <dimitrysh@google.com>
Fri, 4 Nov 2011 18:10:04 +0000 (11:10 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:25:38 +0000 (12:25 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcm4329/dhd_linux.c

index 3ec1f3f..5f5b418 100644 (file)
@@ -1519,7 +1519,8 @@ dhd_dpc_thread(void *data)
                                        dhd_os_wake_unlock(&dhd->pub);
                                }
                        } else {
-                               dhd_bus_stop(dhd->pub.bus, TRUE);
+                               if (dhd->pub.up)
+                                       dhd_bus_stop(dhd->pub.bus, TRUE);
                                dhd_os_wake_unlock(&dhd->pub);
                        }
                }