Skip to content

Commit 72dde5c

Browse files
rado17rlubos
authored andcommitted
[nrf fromtree] net: wifi: shell: Enable Wi-Fi credentials support
Add a snippet for Wi-Fi credentials support. Update the heap sizes as required for enterprise mode. Signed-off-by: Ravi Dondaputi <[email protected]> (cherry picked from commit 4c14c61)
1 parent 71e2834 commit 72dde5c

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

modules/hostap/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ if WIFI_NM_WPA_SUPPLICANT
2525

2626
config HEAP_MEM_POOL_ADD_SIZE_HOSTAP
2727
def_int 66560 if WIFI_NM_HOSTAPD_AP
28+
def_int 55000 if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE && WIFI_CREDENTIALS
2829
def_int 48000 if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
2930
def_int 41808 if WIFI_NM_WPA_SUPPLICANT_AP
3031
# 30K is mandatory, but might need more for long duration use cases

snippets/wifi-credentials/README.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.. _snippet-wifi-credentials:
2+
3+
Wi-Fi Credentials Snippet (wifi-credential)
4+
###########################################
5+
6+
.. code-block:: console
7+
8+
west build -S wifi-credentials [...]
9+
10+
Can also be used along with the :ref:`snippet-wifi-enterprise` snippet.
11+
12+
.. code-block:: console
13+
14+
west build -S "wifi-enterprise,wifi-credentials" [...]
15+
16+
Overview
17+
********
18+
19+
This snippet enables Wi-Fi credentials support.
20+
21+
Requirements
22+
************
23+
24+
Hardware support for:
25+
26+
- :kconfig:option:`CONFIG_WIFI`
27+
- :kconfig:option:`CONFIG_WIFI_USE_NATIVE_NETWORKING`
28+
- :kconfig:option:`CONFIG_WIFI_NM_WPA_SUPPLICANT`
29+
- :kconfig:option:`CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE`

snippets/wifi-credentials/snippet.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: wifi-credentials
2+
append:
3+
EXTRA_CONF_FILE: wifi-credentials.conf
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# For use with Wi-Fi Credentials
2+
CONFIG_WIFI_CREDENTIALS=y
3+
CONFIG_FLASH=y
4+
CONFIG_FLASH_PAGE_LAYOUT=y
5+
CONFIG_FLASH_MAP=y
6+
CONFIG_NVS=y
7+
CONFIG_SETTINGS=y
8+
CONFIG_SETTINGS_NVS=y

0 commit comments

Comments
 (0)