summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Jeon <dennis.jeon@broadcom.com>2020-12-30 22:44:22 +0900
committerAhmed ElArabawy <arabawy@google.com>2021-01-07 22:41:20 +0000
commite7cbe1ec9b2788b6f685843c27d8796c7eb21dc2 (patch)
tree8746a2b809d920cabec604309f9987446c8f5116
parent2b3cc24e0b13fc945132078ad46b3ee0cb94e2bd (diff)
downloadwlan-e7cbe1ec9b2788b6f685843c27d8796c7eb21dc2.tar.gz
HAL: Increase netlink event socket buffer to avoid dropping packet
Netlink packet drop is observed when FW trap is occurs Due to this problem, some entries in ringbuffer are also dropped in the dumped ring files Increase event socket buffer from 512K to 2MB. It should be at least 2MB to perform dump stably in Hikey. Bug: 174534544 Test: Verified on Hikey platform Change-Id: I90c2165e55d56871b4cfbf79b67111d88aa78cc8
-rwxr-xr-xbcmdhd/wifi_hal/wifi_hal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bcmdhd/wifi_hal/wifi_hal.cpp b/bcmdhd/wifi_hal/wifi_hal.cpp
index 29a854c..0b93461 100755
--- a/bcmdhd/wifi_hal/wifi_hal.cpp
+++ b/bcmdhd/wifi_hal/wifi_hal.cpp
@@ -368,7 +368,7 @@ wifi_error wifi_pre_initialize(void)
}
/* Set the socket buffer size */
- if (nl_socket_set_buffer_size(event_sock, (512*1024), 0) < 0) {
+ if (nl_socket_set_buffer_size(event_sock, (2*1024*1024), 0) < 0) {
ALOGE("Could not set size for event_sock: %s",
strerror(errno));
} else {