Skip to content

Conversation

krish2718
Copy link
Contributor

Uses new interface files.

krish2718 and others added 10 commits October 16, 2025 12:54
…al interfaces (VIFs)

Description:
The nRF7002 firmware supports two virtual interfaces (VIFs) that can
operate in different modes (e.g., AP and STA). However, the existing
Zephyr driver only utilizes a single VIF, preventing full
multi-interface support.

This commit extends the nRF7002 driver to support multiple VIFs by
making the following modifications:

* The driver already contains an array of vif_ctx_zep, but only the
first item was being used. Now, a second Ethernet device is registered
using vif_ctx_zep[1], enabling multi-VIF operation.
* Introduced vif_ctx_cnt to keep track of active interfaces and manage
their state effectively.
* Ensured that FMAC (Firmware MAC) is initialized only once, avoiding
redundant initializations when multiple VIFs are present.
* The UMAC control commands previously did not associate responses with
the issuing VIF. A queue is now introduced to track the originating VIF
for each command and correctly route the response event to the
corresponding interface.

Signed-off-by: Hanan Arshad <[email protected]>
Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 1c6a00b)
Move the VIF initialization to top to do it for both VIFs, this fixes a
crash when scanning on the 2nd VIF.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 386dcbe)
…NULL

Commit zephyrproject-rtos/hostap@2de30ff7822bb
moved the driver ops from the config pointer to the API. As the config
pointer isn't used, set it to NULL and allow future updates to actually add
a configuration struct.

Signed-off-by: Pieter De Gendt <[email protected]>
(cherry picked from commit 8d94c3b)
Populate the vendor stats with nRF70 FW statistics, this is handy in
debugging.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit fdd7100933811dce620108cb2e21dac78b82d542)
NRF71 doesn't have direct memory access, so, disabled the rpu stats
memory variant.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 8c5a5ae1990eab14c53bbdee45af7c7ca0d6c49e)
nRF70 and nRF71 now use different interface files, fix the build.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 91c0e15720776e60bf6e474dc3877523b0e4d33e)
nRF71 supports tri-band, so, to cater both nRF70 and nRF71, rejig the
configuration and add a helper to convert from Kconfig to the interface
structs.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 9a13407e3edc59ddf414d90b1e1c4d79fbfb4388)
Fixes second interface bring up failure.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit e68f50d)
A helper script is added to the nrf_wifi repo for parsing and dumping
nRF70 FW stats blob.

Note: "noup" to avoid churn by pulling min/max PR.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit b71d290405f2f591e77ec264d8b8c6c8b12e6d3e)
Pull nRF71 OSAL support, full support is till TBD.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 9f8bb3cda365a061d8713a8533d37e6db29f9522)
@krish2718 krish2718 marked this pull request as ready for review October 16, 2025 07:39
Copy link

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
nrf_wifi zephyrproject-rtos/nrf_wifi@5fffeab zephyrproject-rtos/nrf_wifi@e269670 (main) zephyrproject-rtos/[email protected]

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants