summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-08-12 23:07:14 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-08-12 23:07:14 +0000
commitcd4e95a4f5cbe4124eab7f1b38d3953e7b3dc17e (patch)
tree1ecb844219a87904d0fe08573fbfaad8a4a9a997
parent4446020776430e0691a010b49de54660fe91d2c9 (diff)
parentf45ad586fdfd639862c0858dc23ea34a20b26008 (diff)
downloadwlan-cd4e95a4f5cbe4124eab7f1b38d3953e7b3dc17e.tar.gz
Snap for 7636897 from f45ad586fdfd639862c0858dc23ea34a20b26008 to sc-v2-release
Change-Id: I57074e2e34d2c884eb07d78f36dab7c66a0ac89e
-rwxr-xr-xbcmdhd/wifi_hal/wifi_hal.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bcmdhd/wifi_hal/wifi_hal.cpp b/bcmdhd/wifi_hal/wifi_hal.cpp
index 0ba633b..d3ffe57 100755
--- a/bcmdhd/wifi_hal/wifi_hal.cpp
+++ b/bcmdhd/wifi_hal/wifi_hal.cpp
@@ -66,6 +66,7 @@
#define WIFI_HAL_CMD_SOCK_PORT 644
#define WIFI_HAL_EVENT_SOCK_PORT 645
#define MAX_VIRTUAL_IFACES 5
+#define WIFI_HAL_EVENT_BUFFER_NOT_AVAILABLE 105
/*
* Defines for wifi_wait_for_driver_ready()
@@ -747,6 +748,10 @@ void wifi_event_loop(wifi_handle handle)
ssize_t result2 = TEMP_FAILURE_RETRY(read(pfd[0].fd, buf, sizeof(buf)));
ALOGE("Read after POLL returned %zd, error no = %d (%s)", result2,
errno, strerror(errno));
+ if (errno == WIFI_HAL_EVENT_BUFFER_NOT_AVAILABLE) {
+ ALOGE("Exit, No buffer space");
+ break;
+ }
} else if (pfd[0].revents & POLLHUP) {
ALOGE("Remote side hung up");
break;