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 <ravi.dondaputi@nordicsemi.no>
This commit is contained in:
Ravi Dondaputi 2025-04-15 17:32:48 +05:30 committed by Dan Kalowsky
parent d289bed4af
commit 4c14c618f6
4 changed files with 41 additions and 0 deletions

View File

@ -25,6 +25,7 @@ if WIFI_NM_WPA_SUPPLICANT
config HEAP_MEM_POOL_ADD_SIZE_HOSTAP
def_int 66560 if WIFI_NM_HOSTAPD_AP
def_int 55000 if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE && WIFI_CREDENTIALS
def_int 48000 if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
def_int 41808 if WIFI_NM_WPA_SUPPLICANT_AP
# 30K is mandatory, but might need more for long duration use cases

View File

@ -0,0 +1,29 @@
.. _snippet-wifi-credentials:
Wi-Fi Credentials Snippet (wifi-credential)
###########################################
.. code-block:: console
west build -S wifi-credentials [...]
Can also be used along with the :ref:`snippet-wifi-enterprise` snippet.
.. code-block:: console
west build -S "wifi-enterprise,wifi-credentials" [...]
Overview
********
This snippet enables Wi-Fi credentials support.
Requirements
************
Hardware support for:
- :kconfig:option:`CONFIG_WIFI`
- :kconfig:option:`CONFIG_WIFI_USE_NATIVE_NETWORKING`
- :kconfig:option:`CONFIG_WIFI_NM_WPA_SUPPLICANT`
- :kconfig:option:`CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE`

View File

@ -0,0 +1,3 @@
name: wifi-credentials
append:
EXTRA_CONF_FILE: wifi-credentials.conf

View File

@ -0,0 +1,8 @@
# For use with Wi-Fi Credentials
CONFIG_WIFI_CREDENTIALS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_NVS=y