From b94de4c9bdeb5be79d67c2a9d5b3500248b66da8 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 27 Oct 2022 21:49:58 -0400 Subject: [PATCH] BNetworkDevice: Restore old buffer size. May help with #18020. --- src/kits/network/libnetapi/NetworkDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/network/libnetapi/NetworkDevice.cpp b/src/kits/network/libnetapi/NetworkDevice.cpp index 4ec6dc65a6..31bbb5e7dc 100644 --- a/src/kits/network/libnetapi/NetworkDevice.cpp +++ b/src/kits/network/libnetapi/NetworkDevice.cpp @@ -430,7 +430,7 @@ get_scan_results(const char* device, wireless_network*& networks, uint32& count) return B_BAD_VALUE; // TODO: Find some way to reduce code duplication with the following function! - const size_t kBufferSize = 64 * 1024; + const size_t kBufferSize = 65535; uint8* buffer = (uint8*)malloc(kBufferSize); if (buffer == NULL) return B_NO_MEMORY; @@ -484,7 +484,7 @@ get_scan_result(const char* device, wireless_network& network, uint32 index, return B_BAD_VALUE; // TODO: Find some way to reduce code duplication with the preceding function! - const size_t kBufferSize = 64 * 1024; + const size_t kBufferSize = 65535; uint8* buffer = (uint8*)malloc(kBufferSize); if (buffer == NULL) return B_NO_MEMORY;