1#
2# Copyright (c) 2024 Nordic Semiconductor ASA
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6CONFIG_WIFI=y
7CONFIG_WIFI_NRF70=y
8CONFIG_WIFI_NM_WPA_SUPPLICANT=y
9CONFIG_BUILD_ONLY_NO_BLOBS=y
10
11CONFIG_TEST_RANDOM_GENERATOR=y
12# Networking
13CONFIG_NETWORKING=y
14CONFIG_NET_SOCKETS=y
15CONFIG_NET_LOG=y
16CONFIG_NET_IPV6=y
17CONFIG_NET_IPV4=y
18CONFIG_NET_UDP=y
19CONFIG_NET_TCP=y
20CONFIG_NET_DHCPV4=y
21CONFIG_DNS_RESOLVER=y
22
23CONFIG_NET_STATISTICS=y
24CONFIG_NET_STATISTICS_WIFI=y
25CONFIG_NET_STATISTICS_USER_API=y
26
27CONFIG_NET_PKT_RX_COUNT=8
28CONFIG_NET_PKT_TX_COUNT=8
29
30# Below section is the primary contributor to SRAM and is currently
31# tuned for performance, but this will be revisited in the future.
32CONFIG_NET_BUF_RX_COUNT=16
33CONFIG_NET_BUF_TX_COUNT=16
34CONFIG_NRF70_RX_NUM_BUFS=16
35CONFIG_NRF70_MAX_TX_AGGREGATION=4
36# nRF70 is main consumer: (16 + 8) * 1600 = ~40KB + ~40KB control path (experimental)
37CONFIG_HEAP_MEM_POOL_SIZE=100000
38CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
39CONFIG_NET_TC_TX_COUNT=1
40
41CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=4
42CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=5
43CONFIG_NET_MAX_CONTEXTS=5
44CONFIG_NET_CONTEXT_SYNC_RECV=y
45
46CONFIG_INIT_STACKS=y
47
48# Memories
49CONFIG_MAIN_STACK_SIZE=5200
50CONFIG_SHELL_STACK_SIZE=5200
51
52CONFIG_NET_TX_STACK_SIZE=4096
53CONFIG_NET_RX_STACK_SIZE=4096
54
55# Debugging
56CONFIG_STACK_SENTINEL=y
57CONFIG_DEBUG_COREDUMP=y
58CONFIG_DEBUG_COREDUMP_BACKEND_LOGGING=y
59CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y
60CONFIG_SHELL_CMDS_RESIZE=n
61#CONFIG_DEBUG=y
62CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_INF=y
63
64# Kernel options
65CONFIG_ENTROPY_GENERATOR=y
66CONFIG_REBOOT=y
67
68# Logging
69CONFIG_LOG=y
70CONFIG_PRINTK=y
71CONFIG_SHELL=y
72CONFIG_SHELL_GETOPT=y
73CONFIG_DEVICE_SHELL=y
74CONFIG_POSIX_CLOCK=y
75CONFIG_DATE_SHELL=y
76CONFIG_NET_CONFIG_AUTO_INIT=n
77CONFIG_POSIX_API=y
78
79# printing of scan results puts pressure on queues in new locking
80# design in net_mgmt. So, use a higher timeout for a crowded
81# environment.
82CONFIG_NET_MGMT_EVENT_QUEUE_TIMEOUT=5000
83CONFIG_NET_SOCKETS_POLL_MAX=12
84CONFIG_NET_MGMT_EVENT_QUEUE_SIZE=16
85