net: wireless: bcmdhd: Change singal pending return value from -110 to -4
authorDmitry Shmidt <dimitrysh@google.com>
Tue, 15 May 2012 19:22:48 +0000 (12:22 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Wed, 16 May 2012 23:58:17 +0000 (16:58 -0700)
- ETIMEDOUT is interpreted as FW is not responding,
  so return EINTR instead

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/dhd_sdio.c

index 7fdd31443a8551b50fa6fd900a8e6927f4487853..1e6ed28e4a6ff17565b6b9935b60eda95eb7bfdc 100644 (file)
@@ -1481,9 +1481,9 @@ dhd_bus_rxctl(struct dhd_bus *bus, uchar *msg, uint msglen)
                dhd_os_sdunlock(bus->dhd);
 #endif /* DHD_DEBUG */
        } else if (pending == TRUE) {
-               /* possibly fw hangs so never responsed back */
-               DHD_ERROR(("%s: pending or timeout \n", __FUNCTION__));
-               return -ETIMEDOUT;
+               /* signal pending */
+               DHD_ERROR(("%s: signal pending\n", __FUNCTION__));
+               return -EINTR;
        } else {
                DHD_CTL(("%s: resumed for unknown reason?\n", __FUNCTION__));
 #ifdef DHD_DEBUG