Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wi-Fi upmerge for 2.8.0 #2142

Merged
merged 124 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
fab98a6
[nrf fromtree] hostap: only add STA interface when hostapd enabled
MaochenWang1 Sep 2, 2024
e6e8c8a
[nrf fromtree] zephyr: hostap: fix eap secure mode print UNKNOWN
GaofengZhangNXP Sep 23, 2024
1e9e82c
[nrf fromtree] hostap: add AP configuration cmd support
gangli02 Sep 20, 2024
238d253
[nrf fromtree] hostap: The security keys were checked in wrong function
jukkar Sep 27, 2024
753b8aa
[nrf fromtree] net: wifi: shell: add reg domain support
Rex-Chen-NXP Sep 29, 2024
64f1a52
[nrf fromtree] hostap: Use proper value when generating supplicant event
jukkar Sep 25, 2024
3b05305
[nrf fromtree] hostap: add crypto module test kconfig option
fengming-ye Sep 27, 2024
ab02480
[nrf fromtree] modules: hostap: Use OS primitive even in native code
krish2718 Oct 6, 2024
32ccc2d
[nrf fromtree] modules: hostap: Fix heap pool allocation
krish2718 Oct 6, 2024
a64d466
[nrf fromtree] modules: hostap: Add missing default for max STAs in A…
krish2718 Oct 6, 2024
d314330
[nrf fromtree] modules: hostap: Use the build time flag
krish2718 Oct 6, 2024
d078f24
[nrf fromtree] hostap: fix other STA failed to connect to SAP
MaochenWang1 Oct 8, 2024
267fd5a
[nrf fromtree] hostap: add WPA-Auto-Personal(WPA2/WPA3 mixed) support
gangli02 Sep 20, 2024
a194689
[nrf fromtree] modules: hostap: Add config options for EAP types
rado17 Oct 10, 2024
7beddf7
[nrf fromtree] modules: hostap: Add separate config for EAP-FAST
krish2718 Sep 19, 2024
eefdcca
[nrf fromtree] modules: hostap: Fix checks for Enterprise security
krish2718 Sep 19, 2024
05cc7a5
[nrf fromtree] hostap: fix DUT hang when start SAP on wrong channel
MaochenWang1 Oct 15, 2024
afaab5f
[nrf fromtree] drivers: nrfwifi: Fix random MAC address setting
krish2718 Oct 8, 2024
12cf9b9
[nrf fromtree] west.yml: update hostap revision
jukkar Sep 25, 2024
de2e3f4
[nrf fromtree] west.yml: update hostap revision
fengming-ye Sep 27, 2024
24ebbf9
[nrf fromtree] manifest: hostap: Pull fixes from NCS
krish2718 Oct 6, 2024
e833201
[nrf fromtree] manifest: hostap: Pull fix for duplicate AP enable event
krish2718 Oct 9, 2024
942a122
[nrf fromtree] modules: hal_nordic: Add global domain power request s…
Rafal-Nordic Oct 1, 2024
2876fdd
[nrf fromtree] manifest: update hal_nordic revision for offloaded raw…
kapbh Oct 14, 2024
c46b24f
[nrf fromtree] manifest: Update hostap to fix build error
MaochenWang1 Oct 14, 2024
6be7c5b
[nrf fromtree] drivers: nrfwifi: Create separate offloaded raw tx mode
kapbh Sep 9, 2024
b844353
[nrf fromtree] wifi: Add wrapper APIs for offloaded raw TX feature
kapbh Sep 27, 2024
b8240e9
Revert "[nrf fromtree] drivers: nrfwifi: Use Zephyr tooling to load n…
krish2718 Oct 24, 2024
b4c15d5
[nrf fromtree] drivers: nrfwifi: Fix rebuilding when FW blobs are cha…
krish2718 Oct 5, 2024
6a4c1f2
[nrf fromtree] Revert "drivers: nrfwifi: Fix rebuilding when FW blobs…
krish2718 Oct 9, 2024
4313a22
[nrf fromtree] drivers: nrfwifi: Use Zephyr tooling to load nRF70 FW …
krish2718 Oct 9, 2024
f7bd6ba
[nrf fromtree] drivers: wifi: Fix RPU recovery not being triggered
krish2718 Jul 8, 2024
49c139b
[nrf fromtree] drivers: wifi: nrf700x: Ignore all failures in iface down
krish2718 Jul 9, 2024
d593838
[nrf fromtree] drivers: wifi: Add a sanity check for RPU comms
krish2718 Jul 9, 2024
7386df2
[nrf fromtree] drivers: wifi: Add support for separate debugs for RPU…
krish2718 Jul 9, 2024
6107d84
[nrf fromtree] drivers: wifi: Increase the propogation delay
krish2718 Jul 11, 2024
1f65e78
[nrf fromtree] drivers: wifi: Ignore parallel recovery requests
krish2718 Jul 13, 2024
08ad98c
[nrf fromtree] drivers: wifi: Add quiet period for RPU recovery
krish2718 Jul 13, 2024
090e829
[nrf fromtree] drivers: wifi: Fix the NULL check
krish2718 Jul 13, 2024
b011de0
[nrf fromtree] drivers: wifi: Add RPU recovery retry mechanism
krish2718 Jul 13, 2024
fba3494
[nrf fromtree] drivers: wifi: Fix RPU recovery disabled build failures
krish2718 Jul 17, 2024
9435137
[nrf fromtree] drivers: wifi: Fix TX buffers leak
krish2718 Jul 17, 2024
0cc48f3
[nrf fromtree] drivers: wifi: Add PS state debugs
krish2718 Jul 18, 2024
507cf1b
[nrf fromtree] drivers: wifi: Enable management buffers offload
krish2718 Jul 18, 2024
48f9e39
[nrf fromtree] drivers: wifi: Increase default PS active timeout inte…
krish2718 Aug 6, 2024
0a086d5
[nrf fromtree] drivers: wifi: Add support for keepalive
krish2718 Aug 6, 2024
61fce39
[nrf fromtree] drivers: wifi: Fix shell hang
krish2718 Sep 2, 2024
24a5cec
[nrf fromtree] drivers: wifi: Use mutex for spinlock
krish2718 Sep 4, 2024
4368b70
[nrf fromtree] drivers: wifi: Add PS exit strategy runtime configuration
ajayparida Sep 3, 2024
f9814ab
[nrf fromtree] drivers: wifi: Fix crash when recovery is triggered
krish2718 Sep 11, 2024
05eb6be
[nrf fromtree] drivers: wifi: Fix missing unlock for stats
krish2718 Sep 12, 2024
f600394
[nrf fromtree] drivers: wifi: Fix mutex re-initialization
krish2718 Sep 13, 2024
9790c31
[nrf fromtree] wifi_mgmt: Add support for configuring PS exit strategy
ajayparida Sep 3, 2024
2655071
[nrf fromtree] drivers: nrfwifi: Fix build errors when Util is enabled
krish2718 Oct 7, 2024
97c9357
Revert "[nrf noup] samples: net: wifi: Enable Wi-Fi driver in sysbuil…
krish2718 Oct 21, 2024
318d2bd
[nrf fromtree] samples: net: wifi: Enable nRF70 Util in nRF70 build
krish2718 Oct 7, 2024
a595b4b
[nrf fromtree] drivers: nrfwifi: Fix build error
krish2718 Oct 15, 2024
a2407bd
[nrf fromtree] modules: hostap: fix DPP build error
fengming-ye Oct 16, 2024
284e834
[nrf fromtree] doc: wifi: Update enumeration for EAP-TLS
krish2718 Sep 19, 2024
17e64d9
[nrf fromtree] doc: wifi: Update build command for Enterprise mode
krish2718 Oct 6, 2024
70367b6
[nrf fromtree] samples: net: wifi: enable time checking for mbedtls c…
Rex-Chen-NXP Sep 29, 2024
ef12298
[nrf fromtree] samples: wifi: Add overlays for Enterprise mode
krish2718 Sep 19, 2024
8847bac
[nrf fromtree] net: l2: wifi: ensure certificates directory is created
danieldegrasse Sep 19, 2024
19a0d2f
[nrf fromtree] net: wifi: shell: enhance consistency in `cmd_wifi_dpp…
ndrs-pst Sep 21, 2024
bfd1b48
Revert "[nrf fromlist] net: wifi: Fix DPP disabled build"
krish2718 Oct 21, 2024
2f0489d
[nrf fromtree] net: wifi: Fix DPP disabled build
krish2718 Sep 30, 2024
aeae8ca
[nrf fromtree] wifi: shell: Add missing newlines when printing error
jukkar Oct 9, 2024
bfa0c55
[nrf fromtree] wifi: shell: btm_query: Fix invalid pointer cast
jukkar Oct 9, 2024
3dc7cd4
[nrf fromtree] net: wifi: Fix PEM certificate parsing errors
krish2718 Sep 19, 2024
a21b5e3
[nrf fromtree] net: l2: wifi: fix AP sets band failed with channel 0
MaochenWang1 Oct 16, 2024
9d11684
[nrf fromtree] modules: hostap: Fix memory leak of network
krish2718 Oct 11, 2024
4a0474b
[nrf fromtree] manifest: hostap: Pull fix for WPA3 connection
krish2718 Oct 11, 2024
af74f4a
[nrf fromtree] manifest: hal_nordic: include lpcomp-int-dis-on-stop p…
bjarki-andreasen Oct 14, 2024
f12f587
[nrf fromtree] manifest: Pull promiscuous mode filtering support in d…
VivekUppunda Oct 7, 2024
b1970a4
[nrf fromtree] drivers: wifi: nrfwifi: Promiscuous mode filtering sup…
VivekUppunda Oct 7, 2024
1778454
[nrf fromtree] drivers: wifi: nrfwifi: Add promiscuous mode support f…
VivekUppunda Oct 8, 2024
0e4b55b
[nrf fromtree] drivers: wifi: Add regulatory debug log
krish2718 Oct 15, 2024
db3bf46
[nrf fromtree] manifest: hal_nordic: Pull the flag to identify unsoli…
krish2718 Oct 15, 2024
145a60a
[nrf fromtree] drivers: wifi: Fix memory leak in regulatory processing
krish2718 Oct 15, 2024
d3297d2
[nrf fromtree] drivers: wifi: Clean up exit path
krish2718 Oct 15, 2024
2cddb7b
[nrf fromtree] drivers: nrfwifi: Remove non-existing member
krish2718 Oct 16, 2024
69cea23
[nrf fromlist] net: ip: Add a name to existing Kconfig choice
D-Triveni Oct 3, 2024
f9e8952
[nrf fromlist] drivers: wifi: nrfwifi: Enable variable network config…
D-Triveni Sep 19, 2024
4eeccf4
[nrf fromlist] dts: bindings: wifi: split nrf700x coex and wifi models
bjarki-andreasen Oct 9, 2024
0e102c0
[nrf fromlist] boards: nordic: nrf7002dk: align with nrf700x split in…
bjarki-andreasen Oct 9, 2024
774c25d
[nrf fromlist] boards: shields: nrf7002eb: align with nrf700x split i…
bjarki-andreasen Oct 9, 2024
683cab5
[nrf fromlist] boards: shields: nrf7002ek: align with nrf700x split i…
bjarki-andreasen Oct 9, 2024
fb1c72b
[nrf fromtree] drivers: wifi: Add Kconfig option for passive scan
kapbh Oct 17, 2024
59c43b4
[nrf fromtree] drivers: nrfwifi: Allow scan-only for all platforms
krish2718 Oct 18, 2024
1306635
[nrf fromtree] drivers: wifi: Add changes for regulatory domain
kapbh Oct 18, 2024
8d8d4db
[nrf fromtree] manifest: update hal_nordic revision for regularity do…
kapbh Oct 22, 2024
d5cc196
[nrf fromtree] modules: hostap: fix DPP build error
fengming-ye Oct 16, 2024
d02c3cb
[nrf fromtree] net: wifi: shell: add wps support
Rex-Chen-NXP Aug 20, 2024
59a3381
[nrf fromtree] net: fix build error in DPP struct
MaochenWang1 Oct 8, 2024
d98e260
[nrf fromtree] hostapd: add ap status in l2 wifi
GaofengZhangNXP Sep 29, 2024
701826f
[nrf fromtree] wifi: Refactor wifi-shell to allow external subcommands
jukkar Oct 9, 2024
f10500e
[nrf fromtree] net: wifi: shell: add enterprise support for station
Rex-Chen-NXP Sep 24, 2024
3eff7c1
[nrf fromtree] hostap: Remove extra IEEE8021X_EAPOL as it was mention…
jukkar Oct 17, 2024
bed4069
[nrf fromtree] hostap: Fix hostapd AP compilation error
jukkar Oct 17, 2024
d5a4395
[nrf fromtree] hostap: Add ip-addr.c compilation to the build
jukkar Oct 17, 2024
fd869e5
[nrf fromtree] hostap: P2P needs EAPOL to select it
jukkar Oct 17, 2024
d3b21c2
[nrf fromtree] hostap: Fix compilation error when enterprise support …
jukkar Oct 17, 2024
515d7f5
[nrf fromtree] hostap: Enterprise mode needs sha1-internal.c
jukkar Oct 17, 2024
1ef0afa
[nrf fromtree] hostap: Fix crypto=none compilation
jukkar Oct 17, 2024
12e3a54
[nrf fromtree] hostap: Remove not found hostapd functions
jukkar Oct 18, 2024
c5fb787
[nrf fromtree] hostap: Add needed include files to fix compilation
jukkar Oct 18, 2024
8e04241
[nrf fromtree] hostap: Avoid warning of different enum mapping
jukkar Oct 18, 2024
01b14ac
[nrf fromtree] tests: net: wifi: Add build test for various config co…
jukkar Oct 17, 2024
2f6ec40
[nrf fromtree] manifest: hostap: Pull compile error fixes
jukkar Oct 18, 2024
9ede25c
[nrf fromtree] modules: hostap: Add a config option for WPA control t…
krish2718 Oct 19, 2024
886dc71
[nrf fromlist] net: l2: wifi: Add checks for cert header creation
rado17 Oct 22, 2024
26b0413
[nrf fromtree] manifest: hal_nordic: Pull fix for build errors
krish2718 Oct 21, 2024
f8f842f
[nrf fromtree] drivers: nrfwifi: Fix a build error
krish2718 Oct 21, 2024
8669b6c
[nrf fromtree] samples: wifi: Fix missing CONFIG for the option
krish2718 Oct 21, 2024
04374fa
[nrf fromlist] manifest: hostap: Pull fix for build error
krish2718 Oct 23, 2024
c646c7d
[nrf noup] modules: hostap: Support Wi-Fi EAP-TLS mode
rado17 Oct 8, 2024
4ef193a
[nrf noup] samples: net: wifi: Changes for EAP-TLS support
rado17 Oct 8, 2024
6cd818c
[nrf noup] modules: hostap: Add NCS PSA for hostap crypto ALT
krish2718 Oct 17, 2024
fd98d1b
[nrf noup] samples: net: wifi: Enable Wi-Fi driver in sysbuild builds
krish2718 Oct 10, 2024
d8addd1
[nrf noup] modules: hostap: Fix duplicate define warning
krish2718 Oct 21, 2024
c48cd17
[nrf noup] boards: nordic: 7002dk_ns: Fix missing co-ex
krish2718 Oct 21, 2024
98ca54f
[nrf noup] modules: hostap: Fix NS build
krish2718 Oct 22, 2024
a3d04e7
[nrf noup] samples: net: wifi: Update certificates
krish2718 Oct 22, 2024
d8ba4d2
[nrf noup] modules: hostap: Add NCS PSA for hostap crypto ALT
krish2718 Oct 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
qspi-quad-mode;

#include "nrf70_common.dtsi"
#include "nrf70_common_coex.dtsi"
#include "nrf70_common_5g.dtsi"
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@
qspi-quad-mode;

#include "nrf70_common.dtsi"
#include "nrf70_common_coex.dtsi"
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@
qspi-quad-mode;

#include "nrf70_common.dtsi"
#include "nrf70_common_coex.dtsi"
};
};
1 change: 0 additions & 1 deletion boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp_ns.dts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
qspi-quad-mode;

#include "nrf70_common.dtsi"
#include "nrf70_common_coex.dtsi"
#include "nrf70_common_5g.dtsi"
};
};
7 changes: 5 additions & 2 deletions boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpunet.dts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@

nrf70: coex {
status = "okay";
compatible = "nordic,nrf70-coex";
compatible = "nordic,nrf7002-coex";

#include "nrf70_common_coex.dtsi"
req-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
status0-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
grant-gpios = <&gpio0 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)>;
swctrl1-gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
};

/* These aliases are provided for compatibility with samples */
Expand Down
1 change: 1 addition & 0 deletions boards/nordic/nrf7002dk/nrf70_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
iovdd-ctrl-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
bucken-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
host-irq-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
srrf-switch-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;

wifi-max-tx-pwr-2g-dsss = <21>;
wifi-max-tx-pwr-2g-mcs0 = <16>;
Expand Down
11 changes: 0 additions & 11 deletions boards/nordic/nrf7002dk/nrf70_common_coex.dtsi

This file was deleted.

13 changes: 8 additions & 5 deletions boards/shields/nrf7002eb/nrf7002eb_coex.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include "nrf7002eb.overlay"
/ {
nrf70: coex {
compatible = "nordic,nrf7002-coex";
status = "okay";

&nrf70 {
status0-gpios = <&edge_connector 5 GPIO_ACTIVE_HIGH>;
req-gpios = <&edge_connector 6 GPIO_ACTIVE_HIGH>;
grant-gpios = <&edge_connector 15 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)>;
status0-gpios = <&edge_connector 5 GPIO_ACTIVE_HIGH>;
req-gpios = <&edge_connector 6 GPIO_ACTIVE_HIGH>;
grant-gpios = <&edge_connector 15 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)>;
};
};
3 changes: 3 additions & 0 deletions boards/shields/nrf7002ek/Kconfig.shield
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ config SHIELD_NRF7002EK_NRF7001

config SHIELD_NRF7002EK_NRF7000
def_bool $(shields_list_contains,nrf7002ek_nrf7000)

config SHIELD_NRF7002EK_COEX
def_bool $(shields_list_contains,nrf7002ek_coex)
13 changes: 7 additions & 6 deletions boards/shields/nrf7002ek/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,25 @@ SR Co-existence
###############

The nRF7002 EK supports SR co-existence provided the host board supports it. The SR co-existence
pins are connected to the host board's GPIO pins.
pins are connected to the host board's GPIO pins. The interface is selected by setting
``--shield nrf7002ek_coex`` when invoking ``west build``.

Two Kconfig options are available to enable SR co-existence:

- :kconfig:option:`CONFIG_NRF70_SR_COEX`: Enables SR co-existence.
- :kconfig:option:`CONFIG_NRF70_SR_COEX`: Enables SR co-existence driver.
- :kconfig:option:`CONFIG_NRF70_SR_COEX_RF_SWITCH`: Control SR side RF switch.

Shield Variants
###############

The nRF7002 EK is available in three variants:
The nRF7002 EK is available in four variants:

- ``nrf7002ek``: The default variant.
- ``nrf7002ek_nrf7001``: Variant for the nRF7001 SoC or nRF7002 SoC emulating nRF7001
that supports only 2.4GHz Wi-Fi.
that supports only 2.4GHz Wi-Fi.
- ``nrf7002ek_nrf7000``: Variant for the nRF7000 SoC or nRF7002 SoC emulating nRF7000
that supports only 2.4GHz Wi-Fi.

that supports only 2.4GHz Wi-Fi.
- ``nrf7002ek_coex``: Variant for the SR co-existence interface

References
**********
Expand Down
21 changes: 21 additions & 0 deletions boards/shields/nrf7002ek/nrf7002ek_coex.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
nrf70: coex {
compatible = "nordic,nrf7002-coex";
status = "okay";

/* D2 */
status0-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>;
/* D3 */
req-gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>;
/* D4 */
grant-gpios = <&arduino_header 10 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)>;
/* D6 */
swctrl1-gpios = <&arduino_header 12 GPIO_ACTIVE_HIGH>;
};
};
9 changes: 1 addition & 8 deletions boards/shields/nrf7002ek/nrf7002ek_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,8 @@ iovdd-ctrl-gpios = <&arduino_header 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
bucken-gpios = <&arduino_header 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
/* D7 */
host-irq-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>;

/* Short-range (SR) co-existence */
/* D2 */
status0-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>;
/* D3 */
req-gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>;
/* D4 */
grant-gpios = <&arduino_header 10 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)>;
/* D6 */
swctrl1-gpios = <&arduino_header 12 GPIO_ACTIVE_HIGH>;
/* D8 */
srrf-switch-gpios = <&arduino_header 14 GPIO_ACTIVE_HIGH>;

Expand Down
19 changes: 13 additions & 6 deletions doc/connectivity/networking/api/wifi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,28 @@ module.
$ cp client.pem samples/net/wifi/test_certs/
$ cp client-key.pem samples/net/wifi/test_certs/
$ cp ca.pem samples/net/wifi/test_certs/
$ west build -p -b <board> samples/net/wifi
$ cp client2.pem samples/net/wifi/test_certs/
$ cp client-key2.pem samples/net/wifi/test_certs/
$ cp ca2.pem samples/net/wifi/test_certs/
$ west build -p -b <board> samples/net/wifi -- -DEXTRA_CONF_FILE=overlay-enterprise.conf

For using variable size network buffer, the following overlay file can be used:

.. code-block:: bash

$ west build -p -b <board> samples/net/wifi -- -DEXTRA_CONF_FILE=overlay-enterprise-variable-bufs.conf



To initiate Wi-Fi connection, the following command can be used:

.. code-block:: console

uart:~$ wifi connect -s <SSID> -k 5 -a anon -K whatever
uart:~$ wifi connect -s <SSID> -c 149 -k 17 -w 2 -a client1 --key1-pwd whatever --key2-pwd whatever --eap-id1 id1 --eap-pwd1 pwd1

Server certificate is also provided in the same directory for testing purposes.
Any AAA server can be used for testing purposes, for example, ``FreeRADIUS`` or ``hostapd``.

.. important::

The passphrase for the :file:`client-key.pem`` and the :file:`server-key.pem` is ``whatever``.

.. note::

The certificates are for testing purposes only and should not be used in production.
Expand Down
48 changes: 44 additions & 4 deletions drivers/wifi/nrfwifi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,15 @@ zephyr_include_directories_ifdef(CONFIG_NRF70_RADIO_TEST
${OS_AGNOSTIC_BASE}/fw_if/umac_if/inc/radio_test
)

zephyr_include_directories_ifndef(CONFIG_NRF70_RADIO_TEST
${OS_AGNOSTIC_BASE}/fw_if/umac_if/inc/default
zephyr_include_directories_ifdef(CONFIG_NRF70_OFFLOADED_RAW_TX
${OS_AGNOSTIC_BASE}/fw_if/umac_if/inc/offload_raw_tx
off_raw_tx/inc
)

if(NOT CONFIG_NRF70_RADIO_TEST AND NOT CONFIG_NRF70_OFFLOADED_RAW_TX)
zephyr_include_directories(${OS_AGNOSTIC_BASE}/fw_if/umac_if/inc/default)
endif()

zephyr_library_sources_ifdef(CONFIG_NRF70_SR_COEX
src/coex.c
)
Expand All @@ -57,23 +62,28 @@ zephyr_library_sources(
src/shim.c
src/work.c
src/timer.c
src/fmac_main.c
src/qspi/src/device.c
src/qspi/src/rpu_hw_if.c
src/qspi/src/ficr_prog.c
)

zephyr_library_sources_ifndef(CONFIG_NRF70_OFFLOADED_RAW_TX
src/fmac_main.c
)

zephyr_library_sources_ifdef(CONFIG_NRF_WIFI_PATCHES_BUILTIN
src/fw_load.c
)

zephyr_library_sources_ifndef(CONFIG_NRF70_RADIO_TEST
if(NOT CONFIG_NRF70_RADIO_TEST AND NOT CONFIG_NRF70_OFFLOADED_RAW_TX)
zephyr_library_sources(
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/rx.c
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/fmac_vif.c
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/fmac_util.c
src/net_if.c
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/default/fmac_api.c
)
endif()

zephyr_library_sources_ifdef(CONFIG_NET_L2_WIFI_MGMT
src/wifi_mgmt_scan.c
Expand All @@ -88,6 +98,12 @@ zephyr_library_sources_ifdef(CONFIG_NRF70_RADIO_TEST
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/fmac_util.c
)

zephyr_library_sources_ifdef(CONFIG_NRF70_OFFLOADED_RAW_TX
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/offload_raw_tx/fmac_api.c
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/fmac_util.c
off_raw_tx/src/off_raw_tx_api.c
)

zephyr_library_sources_ifdef(CONFIG_NRF70_DATA_TX
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/tx.c
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/fmac_peer.c
Expand All @@ -112,6 +128,10 @@ zephyr_library_sources_ifdef(CONFIG_NRF70_STA_MODE
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/fmac_util.c
)

zephyr_library_sources_ifdef(CONFIG_NRF70_PROMISC_DATA_RX
${OS_AGNOSTIC_BASE}/fw_if/umac_if/src/fmac_promisc.c
)

zephyr_library_sources_ifdef(CONFIG_NRF70_ON_QSPI
src/qspi/src/qspi_if.c
)
Expand Down Expand Up @@ -152,6 +172,8 @@ elseif(CONFIG_NRF_WIFI_PATCHES_BUILTIN)
set(NRF70_PATCH ${FW_BINS_BASE}/scan_only/nrf70.bin)
elseif (CONFIG_NRF70_SYSTEM_WITH_RAW_MODES)
set(NRF70_PATCH ${FW_BINS_BASE}/system_with_raw/nrf70.bin)
elseif(CONFIG_NRF70_OFFLOADED_RAW_TX)
set(NRF70_PATCH ${FW_BINS_BASE}/offloaded_raw_tx/nrf70.bin)
else()
# Error
message(FATAL_ERROR "Unsupported nRF70 patch configuration")
Expand Down Expand Up @@ -231,6 +253,10 @@ zephyr_compile_definitions_ifdef(CONFIG_NRF70_RADIO_TEST
-DNRF70_RADIO_TEST
)

zephyr_compile_definitions_ifdef(CONFIG_NRF70_OFFLOADED_RAW_TX
-DNRF70_OFFLOADED_RAW_TX
)

zephyr_compile_definitions_ifdef(CONFIG_NRF70_TCP_IP_CHECKSUM_OFFLOAD
-DNRF70_TCP_IP_CHECKSUM_OFFLOAD
)
Expand Down Expand Up @@ -263,6 +289,18 @@ zephyr_compile_definitions_ifdef(CONFIG_NRF70_AP_MODE
-DNRF70_AP_MODE
)

zephyr_compile_definitions_ifdef(CONFIG_NRF_WIFI_MGMT_BUFF_OFFLOAD
-DNRF_WIFI_MGMT_BUFF_OFFLOAD
)

zephyr_compile_definitions_ifdef(CONFIG_NRF_WIFI_FEAT_KEEPALIVE
-DNRF_WIFI_FEAT_KEEPALIVE
)

zephyr_compile_definitions_ifdef(CONFIG_NRF_WIFI_FEAT_KEEPALIVE
-DNRF_WIFI_KEEPALIVE_PERIOD_S=${CONFIG_NRF_WIFI_KEEPALIVE_PERIOD_S}
)

zephyr_compile_definitions(
-DNRF70_RX_NUM_BUFS=${CONFIG_NRF70_RX_NUM_BUFS}
-DNRF70_MAX_TX_TOKENS=${CONFIG_NRF70_MAX_TX_TOKENS}
Expand Down Expand Up @@ -304,4 +342,6 @@ zephyr_compile_definitions(
-DNRF70_ANT_GAIN_5G_BAND1=${CONFIG_NRF70_ANT_GAIN_5G_BAND1}
-DNRF70_ANT_GAIN_5G_BAND2=${CONFIG_NRF70_ANT_GAIN_5G_BAND2}
-DNRF70_ANT_GAIN_5G_BAND3=${CONFIG_NRF70_ANT_GAIN_5G_BAND3}
-DNRF_WIFI_PS_INT_PS=${CONFIG_NRF_WIFI_PS_INT_PS}
-DNRF_WIFI_RPU_RECOVERY_PS_ACTIVE_TIMEOUT_MS=${CONFIG_NRF_WIFI_RPU_RECOVERY_PS_ACTIVE_TIMEOUT_MS}
)
Loading
Loading