Skip to content

Commit 2ce2fc1

Browse files
committed
[nrf fromlist] wifi: Move Wi-Fi enterprise configs to a snippet
Instead of having an overlay move the Enterprise configurations to a dedicated snippet so that it can be enabled with any sample. Can be used along with Wi-Fi snippet e.g., `-S "wifi-ipv4;wifi-enterprise"`. Upstream PR #: 87656 Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 133c142 commit 2ce2fc1

File tree

5 files changed

+37
-21
lines changed

5 files changed

+37
-21
lines changed

doc/connectivity/networking/api/wifi.rst

+1-8
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,7 @@ 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 -- -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-
53+
$ west build -p -b <board> samples/net/wifi -S wifi-enterprise
6154
6255
Run time certificates
6356
---------------------

samples/net/wifi/shell/overlay-enterprise.conf

-10
This file was deleted.

snippets/wifi-enterprise/README.rst

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.. _snippet-wifi-enterprise:
2+
3+
Wi-Fi Enterprise Snippet (wifi-enterprise)
4+
##########################################
5+
6+
.. code-block:: console
7+
8+
west build -S wifi-enterprise [...]
9+
10+
Can also be used along with the :ref:`snippet-wifi-ipv4` snippet.
11+
12+
.. code-block:: console
13+
14+
west build -S "wifi-enterprise,wifi-ipv4" [...]
15+
16+
Overview
17+
********
18+
19+
This snippet enables enterprise Wi-Fi support in supported networking samples.
20+
21+
See :ref:`wifi_mgmt` for more information on the usage.
22+
23+
Requirements
24+
************
25+
26+
Hardware support for:
27+
28+
- :kconfig:option:`CONFIG_WIFI`
29+
- :kconfig:option:`CONFIG_WIFI_USE_NATIVE_NETWORKING`
30+
- :kconfig:option:`CONFIG_WIFI_NM_WPA_SUPPLICANT`
31+
- :kconfig:option:`CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE`

snippets/wifi-enterprise/snippet.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: wifi-enterprise
2+
append:
3+
EXTRA_CONF_FILE: wifi-enterprise.conf
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
# Enable Wi-Fi enterprise mode
12
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
43
# Use variable data size to reduce memory usage for small data packets
54
CONFIG_NET_BUF_VARIABLE_DATA_SIZE=y
65
# For TLS and X.509 processing MbedTLS needs large heap size and using separate heap
76
# for MbedTLS gives us more control over the heap size.
87
CONFIG_MBEDTLS_ENABLE_HEAP=y
9-
CONFIG_MBEDTLS_HEAP_SIZE=55000
8+
CONFIG_MBEDTLS_HEAP_SIZE=70000

0 commit comments

Comments
 (0)