Skip to content

Commit da7d5d2

Browse files
committed
Revert "[nrf fromlist] wifi: Move Wi-Fi enterprise configs to a snippet"
This reverts commit e6d8fe1. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent ad8f9f3 commit da7d5d2

File tree

5 files changed

+21
-37
lines changed

5 files changed

+21
-37
lines changed

doc/connectivity/networking/api/wifi.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,14 @@ module.
5050
$ cp client2.pem samples/net/wifi/test_certs/
5151
$ cp client-key2.pem samples/net/wifi/test_certs/
5252
$ cp ca2.pem samples/net/wifi/test_certs/
53-
$ west build -p -b <board> samples/net/wifi -S wifi-enterprise
53+
$ west build -p -b <board> samples/net/wifi -- -DEXTRA_CONF_FILE=overlay-enterprise.conf
54+
55+
For using variable size network buffer, the following overlay file can be used:
56+
57+
.. code-block:: bash
58+
59+
$ west build -p -b <board> samples/net/wifi -- -DEXTRA_CONF_FILE=overlay-enterprise-variable-bufs.conf
60+
5461
5562
Run time certificates
5663
---------------------
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# Enable Wi-Fi enterprise mode
21
CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y
2+
# EAP frames are ~1100 bytes, so, for efficiency, we set the data size to 1100
3+
CONFIG_NET_BUF_DATA_SIZE=1100
34
# Use variable data size to reduce memory usage for small data packets
45
CONFIG_NET_BUF_VARIABLE_DATA_SIZE=y
56
# For TLS and X.509 processing MbedTLS needs large heap size and using separate heap
67
# for MbedTLS gives us more control over the heap size.
78
CONFIG_MBEDTLS_ENABLE_HEAP=y
8-
CONFIG_MBEDTLS_HEAP_SIZE=60000
9+
CONFIG_MBEDTLS_HEAP_SIZE=55000
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y
2+
# EAP frames are ~1100 bytes, so, need higher packet counts as default packet size is 128
3+
CONFIG_NET_PKT_TX_COUNT=36
4+
CONFIG_NET_PKT_RX_COUNT=36
5+
CONFIG_NET_BUF_TX_COUNT=72
6+
CONFIG_NET_BUF_RX_COUNT=36
7+
# For TLS and X.509 processing MbedTLS needs large heap size and using separate heap
8+
# for MbedTLS gives us more control over the heap size.
9+
CONFIG_MBEDTLS_ENABLE_HEAP=y
10+
CONFIG_MBEDTLS_HEAP_SIZE=60000

snippets/wifi-enterprise/README.rst

Lines changed: 0 additions & 31 deletions
This file was deleted.

snippets/wifi-enterprise/snippet.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)