mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-03 23:53:00 +00:00
wapi: Make the initial scan buffer configurable through Kconfig
The default value is 4KB which is same as IW_SCAN_MAX_DATA Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
a755cb72da
commit
a25f640e54
2 changed files with 5 additions and 1 deletions
|
|
@ -36,6 +36,10 @@ config WIRELESS_WAPI_PRIORITY
|
|||
int "Command Priority"
|
||||
default 100
|
||||
|
||||
config WIRELESS_WAPI_SCAN_MAX_DATA
|
||||
int "Scan Cache Buffer Size (bytes)"
|
||||
default 4096
|
||||
|
||||
config WIRELESS_WAPI_INITCONF
|
||||
bool "Wireless Configure Initialization"
|
||||
default n
|
||||
|
|
|
|||
|
|
@ -1292,7 +1292,7 @@ int wapi_scan_coll(int sock, FAR const char *ifname,
|
|||
|
||||
WAPI_VALIDATE_PTR(aps);
|
||||
|
||||
buflen = IW_SCAN_MAX_DATA;
|
||||
buflen = CONFIG_WIRELESS_WAPI_SCAN_MAX_DATA;
|
||||
buf = malloc(buflen * sizeof(char));
|
||||
if (!buf)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue