Skip to content

Commit c01b222

Browse files
committed
snippets: Add snippet for P2P build options
Create snippet for P2P build. Signed-off-by: Ravi Dondaputi <[email protected]>
1 parent ba9344e commit c01b222

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

snippets/wifi-p2p/README.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. _snippet-wifi-p2p:
2+
3+
Wi-Fi P2P Snippet (wifi-p2p)
4+
##########################################
5+
6+
.. code-block:: console
7+
8+
west build -S wifi-p2p [...]
9+
10+
Overview
11+
********
12+
13+
This snippet enables Wi-Fi P2P support in supported networking samples.
14+
15+
Requirements
16+
************
17+
18+
Hardware support for:
19+
20+
- :kconfig:option:`CONFIG_WIFI`
21+
- :kconfig:option:`CONFIG_WIFI_USE_NATIVE_NETWORKING`
22+
- :kconfig:option:`CONFIG_WIFI_NM_WPA_SUPPLICANT`

snippets/wifi-p2p/snippet.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: wifi-p2p
2+
append:
3+
EXTRA_CONF_FILE: wifi-p2p.conf

snippets/wifi-p2p/wifi-p2p.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CONFIG_NRF70_P2P_MODE=y
2+
CONFIG_WIFI_NM_WPA_SUPPLICANT_P2P=y
3+
CONFIG_WPA_CLI=y
4+
CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_INF=y
5+
CONFIG_LTO=y
6+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

0 commit comments

Comments
 (0)