Commit graph

968 commits

Author SHA1 Message Date
Ravi Dondaputi
baef40786c drivers: wifi: nrf_wifi: Use filter_ssid for connect scan
Modify the scan logic to use filter_ssids for connect scan
and use ssids for other cases.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Chaitanya Tata
45029ab469 drivers: nrf_wifi: Fix the port authorization logic
For non-STA mode the vif level authorized flag is unused, simply allow
all group traffic and for unicast traffic check respective peer status.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Chaitanya Tata
3905d7a939 drivers: nrf_wifi: Set VIF type for non-STA
This is used in SoftAP/P2P GO modes.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Chaitanya Tata
ce937488b3 drivers: nrf_wifi: Workaround for failing tests
Test automation framework fails if there are any error prints, and we
had seen issues with networking that sends packets to the driver before
the assocation is up (either not checking dormant status or in a window
where dormant status is being updated).

Add a workaround to suppress the print till the issue root cause is
fixed.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Triveni Danda
f71d52c4dd drivers: wifi: nrf_wifi: Fix invalid pointer access
Fix pointer dereferencing by accessing the pointer only
after initialization, preventing fault exceptions.

Signed-off-by: Triveni Danda <triveni.danda@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Ravi Dondaputi
02756ea9da drivers: wifi: nrf_wifi: Suppress 11b rates in P2P scan
Add an identifier to P2P scan request. RPU can use this to
differentiate it from regular scan requests and suppress
11b rates.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Ravi Dondaputi
8a5b39fd27 drivers: wifi: nrf_wifi: Add cookie handling support
Add cookie event callbacks to track RoC and cancel-RoC
requests and its responses from firmware.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Ravi Dondaputi
fbc0429906 drivers: wifi: nrf_wifi: Add P2P powersave support
Add ops to handle P2P powersave configuration.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Ravi Dondaputi
1da38b7d0a drivers: wifi: nrf_wifi: Add per-peer authorized flag
Add per-peer authorized parameter. Port authorization command
from supplicant will set this flag and will be used by driver
to allow or nor allow data traffic.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Kapil Bhatt
04a9692a91 drivers: nrf_wifi: Add default value to p2p mode Kconfig
The Kconfig NRF70_P2P_MODE should be enabled when
WIFI_NM_WPA_SUPPLICANT_P2P is enabled.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Ravi Dondaputi
041766d9cb drivers: wifi: nrf_wifi: Register frame without match
For frames like Probe Requests, there is no match criterion.
Re-arrange the checks to support registering of frames without
providing any matching info.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Ravi Dondaputi
ed56b9b97c drivers: wifi: nrf_wifi: Allow off channel TX for probe responses
For frames sent down by supplicant in station mode, inform RPU
to allow off-channel transmission. This is needed for sending
P2P probe responses.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Ravi Dondaputi
a9176ad7cb drivers: wifi: nrf_wifi: Add RoC support
Add ops for remain-on-channel and cancelling remain-on-channel.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Ravi Dondaputi
3ac9a46aba drivers: wifi: nrf_wifi: Set P2P capability
In P2P mode, inform supplicant that the driver is P2P capable.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Ravi Dondaputi
d9015cf5d0 drivers: wifi: nrf_wifi: Set SSID for P2P discovery
Use `ssids` instead of `filter_ssids` to set the SSID in probe
requests. `filter_ssids` are to filter scan results to include
only the specified SSIDs.

Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
2026-01-13 13:30:23 +01:00
Kapil Bhatt
2b2ac80eea drivers: wifi: Change WPA3 to WPA3_HNP and WPA3_H2E
Change WPA3 into WPA3-HNP, WPA3-H2E for Display scan fix.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2026-01-12 12:31:08 -06:00
Kapil Bhatt
7885303422 driver: nrf_wifi: Add config option for No-ACK policy in Tx packets
Build time configuration option to set No-ACK policy for Tx packets
with a specific TID.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
2026-01-12 12:31:08 -06:00
Devika Raju
5f0483a8aa drivers: wifi: siwx91x: Fix multicast filtering on IGMP leave
Device continued receiving multicast data after leaving IGMP group
because the driver did not configure the SiWx917 firmware to stop
filtering for the multicast MAC address.

Register a Zephyr multicast monitor callback (net_if_mcast_mon_register)
that calls sl_wifi_configure_multicast_filter() to add or remove
multicast MAC filters in the firmware when groups are joined or left.

Signed-off-by: Devika Raju <Devika.Raju@silabs.com>
2026-01-12 11:54:32 +01:00
Gaetan Perrot
3c7d6ece5a drivers: wifi: eswifi: eswifi_offload: fix DHCP enable error handling
eswifi_off_enable_dhcp() ignored the return value of eswifi_at_cmd()
and always reported success, making the error check at the call site
always false.

Return the command result to properly propagate failures.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-08 11:56:32 +00:00
Gaetan Perrot
5768f30f0d drivers: wifi: esp_at: esp_offload: drop unused dev variable in esp_bind
The esp_data pointer is no longer used after removing the premature
_sock_connect() call. Drop the unused variable.

_sock_connect() call was removed by c368c33.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-08 11:55:25 +00:00
Gaetan Perrot
560ecb2949 drivers: wifi: eswifi: eswifi_socket: fix listen backlog error handling
__eswifi_listen() ignored errors from eswifi_at_cmd() and always
reported success, leaving the local error variable unused.

Return an error when setting the listen backlog fails and avoid
marking the socket as a server in that case.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-08 09:47:17 +01:00
Fengming Ye
a957c6311d wifi: nxp: support nxp wifi with custom host platform
Add CONFIG_NXP_WIFI_CUSTOM_HOST to build with custom
host platform.

Signed-off-by: Fengming Ye <frank.ye@nxp.com>
2025-12-23 05:08:39 +01:00
Alberto Escolar Piedras
0a8d5881d4 drivers: wifi: winc1500: Fix net API use
In 55c49cdb8f wifi
drivers were changed to use the Zephyr native net_ prefixed
types, but some were forgotten.
Without this fix/change the code still builds as we are by now setting
CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things
fail to build.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-18 18:53:10 +00:00
Alberto Escolar Piedras
1fcb102983 drivers: wifi: simplelink: Fix net API use
In 55c49cdb8f wifi
drivers were changed to use the Zephyr native net_ prefixed
types, but some were forgotten.
Without this fix/change the code still builds as we are by now setting
CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things
fail to build.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-18 18:53:10 +00:00
Alberto Escolar Piedras
9010e20e9f drivers: wifi: nxp: Fix net API use
In 55c49cdb8f wifi
drivers were changed to use the Zephyr native net_ prefixed
types, but some were forgotten.
Without this fix/change the code still builds as we are by now setting
CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things
fail to build.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-18 18:53:10 +00:00
Alberto Escolar Piedras
b7261fad59 drivers: wifi: eswifi: Fix net API use
In 55c49cdb8f wifi
drivers were changed to use the Zephyr native net_ prefixed
types, but some were forgotten.
Without this fix/change the code still builds as we are by now setting
CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things
fail to build.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-18 18:53:10 +00:00
Alberto Escolar Piedras
ecb5d3c898 drivers: wifi: esp_at: Fix net API use
In 55c49cdb8f wifi
drivers were changed to use the Zephyr native net_ prefixed
types, but some were forgotten.
Without this fix/change the code still builds as we are by now setting
CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things
fail to build.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-18 18:53:10 +00:00
Muzaffar Ahmed
d7900d6d5b drivers: wifi: siwx91x: Disable automatic rejoin in NWP
Disable rejoin by setting max_retry_attempts to 1. This is done to keep
the NWP state in sync with Zephyr Host, given that Zephyr does not have
a "rejoin ongoing" state.

Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
2025-12-17 13:58:40 -05:00
Sylvio Alves
f8d2e00a0e includes: remove duplicated entries in zephyr-tree
Remove duplicated #include directives within the same
preprocessor scope across the Zephyr tree.

Duplicates inside different #ifdef branches are preserved
as they may be intentional.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-12-17 13:57:38 -05:00
Thomas Hebb
58212cd70e drivers: wifi: airoc: Populate band in scan results
The driver gives us this information, so we just need to translate it to
Zephyr's type like we already do for security.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
2025-12-17 13:56:10 -05:00
Jordan Yates
c13420333c wifi: nrf_wifi: respect SHELL_STACK_SIZE dependencies
`SHELL_STACK_SIZE` should not be redefined as a symbol with no
dependencies, it should be applying a new default to the existing
symbol.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-12-17 10:58:39 +02:00
Jordan Yates
cbd5687fc2 wifi: nrf_wifi: return errors when bringups fail
The combination of two different return variables (`status` and `ret`)
resulted in most failure paths through the bringup code still returning
success.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-12-17 10:58:39 +02:00
Chaitanya Tata
55c492c7c5 drivers: nrf_wifi: Switch to new stats API
nRF70 queries FW to fet the stats, use the new stats API and filter FW
query depending on the type.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-12-11 16:33:54 -05:00
Alberto Escolar Piedras
244fe54a6d drivers: wifi: Fix remaining use of sa_family_t
In 55c49cdb8f the mayority of the
Zephyr wifi drivers was changed to use the Zephyr native net_ prefixed
types, but some were forgotten.
Without this fix/change the code still builds as we are by now setting
CONFIG_NET_NAMESPACE_COMPAT_MODE. But when this is not set, things
will fail to build.

Note that the net_offload struct was updated accordingly in
d45cd6716b

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-12-11 17:06:04 +01:00
Badr Bacem KAABIA
ceac2e6c0f drivers: wifi: airoc: Fallback to user security on scan fail
In the `airoc_mgmt_connect` function, if the user provides a security
type of `WIFI_SECURITY_TYPE_NONE` along with a PSK, the driver attempts
to scan for the AP to determine the correct security protocol.

However, if this scan fails or does not find the AP, the driver would
previously fail the connection attempt instead of using the security
type originally provided by the user.

This change ensures that if the scan does not resolve the security
type (`WHD_SECURITY_UNKNOWN`), the driver falls back to using the
security type from the connection parameters. This makes the connection
process more robust and resilient to scan failures.

Signed-off-by: Badr Bacem KAABIA <badrbacemkaabia@gmail.com>
2025-12-05 10:52:44 +02:00
Swamidas Nampalli
c2f8f9813d drivers: wifi: siwx91x: Drop the loop back packets
Added a MAC-layer filter to discard frames whose source MAC address
matches the devices own MAC address. These packets are looped-back
frames that do not need to be processed again by the network stack.

Dropping such frames early improves correctness, avoids redundant RX
processing, and reduces load on the IPv4/IPv6 protocol handlers.

This patch is a workaround for a bug in the NWP

Signed-off-by: Swamidas Nampalli <Swami.Das@silabs.com>
2025-12-04 14:05:47 -05:00
Muzaffar Ahmed
d31c6e9503 drivers: wifi: siwx91x: Fix link mode query for AP mode in channel 14
Add a channel check to update the link mode in wifi status query.

Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
2025-12-02 12:31:30 +00:00
Muzaffar Ahmed
f0454eb8b1 drivers: wifi: siwx91x: Fix AP mode channel status when using auto channel
Fixes the auto channel status by using the channel number from fetched
wireless info, rather than the input config variable.

Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
2025-12-02 11:31:24 +01:00
Arunmani Alagarsamy
1814b902a9 soc: silabs: siwg917: Add configurable boot features via DTS and Kconfig
Add support for configuring hardware-specific boot feature bitmaps
through Devicetree and software-specific boot configurations through
Kconfig options.

Signed-off-by: Arunmani Alagarsamy <arunmani.a@silabs.com>
2025-11-27 14:48:35 +01:00
Humphrey Chiramba
960586509b drivers: wifi: esp32: Enable WiFi connection by specifying BSSID
Added a method for users to connect to a given access point
by specifying its MAC address.

Signed-off-by: Humphrey Chiramba <humphrey@plentify.co.za>
2025-11-25 19:24:26 +00:00
Hui Bai
d073ae1bf5 drivers: wifi: Update debug level of wakeup source dump function
Update wakeup source dump function to DBG level. This function will
print and clear wakeup source registers of NXP wifi chips with
CONFIG_WIFI_LOG_LEVEL_DBG enabled. By changing debug level of this file,
user can avoid wakeup source clear.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2025-11-24 17:23:43 +01:00
Hui Bai
0f8228f410 drivers: wifi: Add new config CONFIG_NXP_WIFI_WAKE_TIMER_ENABLE
Added new config CONFIG_NXP_WIFI_WAKE_TIMER_ENABLE and enable it for NXP
wifi chips.

Signed-off-by: Hui Bai <hui.bai@nxp.com>
2025-11-24 17:23:43 +01:00
Jakub Klimczak
f16f3f641e zvfs: Move fdtable into ZVFS
The file descriptor table is used in every area that expects to work on
files through descriptor indices. It can only be operated on through
functions whose names indicate a relationship with ZVFS (`zvfs_*fd*`).
The integer file descriptor mechanism shouldn't be separate from ZVFS.
This will make cooperation between different file access APIs much
simpler. This commit also makes preparations for the fdtable becoming
optional.

Signed-off-by: Jakub Klimczak <jklimczak@internships.antmicro.com>
2025-11-18 08:12:19 -05:00
Jukka Rissanen
55c49cdb8f net: Convert wifi drivers to use renamed network APIs
Rename network symbols in wifi drivers to use the renamed
network APIs.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-11-17 14:01:32 -05:00
Josuah Demangeon
30950b888d style: drivers: sort Kconfig and CMake includes
Use the "zephyr-keep-sorted-start/stop" comment to have CI check
the alphabetical order of includes, to help reducing the chance
of conflicts while contributing drivers.

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-11-17 13:48:03 -05:00
Chaitanya Tata
de09399fa2 drivers: nrf_wifi: Fix nRF71 build
nRF71 uses a different data structure.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-11-17 09:18:38 -05:00
Chaitanya Tata
6476790987 drivers: wifi: nrf_wifi: Implement stats type
Pass the stats type to the new API.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-11-17 09:18:38 -05:00
Sylvio Alves
327954c3ef driver: wifi: esp32: update API interface
Add set_config to allow custom mac address.
Add statistics reset function.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-11-14 10:26:42 +02:00
Qiankun Li
3b2b513be3 drivers: wifi: nxp: Raise Wi-Fi mgmt events for soft AP start/stop.
Enhanced the shim driver to raise Wi-Fi management events
when starting or stopping SoftAP, specifically in cases
where CONFIG_WIFI_NM_HOSTAPD_AP is disabled.

Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
2025-11-13 23:16:25 +02:00
Jordan Yates
71e242556d drivers: nrf_wifi: move Kconfig validation to Kconfig
Move compile time validation of Kconfig symbols into the symbols
themselves.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-11-13 23:12:40 +02:00