BNetworkDevice: Restore old buffer size.

May help with #18020.
This commit is contained in:
Augustin Cavalier 2022-10-27 21:49:58 -04:00
parent b2c77ad27a
commit b94de4c9bd

View File

@ -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;