Skip to content

[noup] zephyr: add support for nan#119

Open
Qingling-Wu wants to merge 2 commits intozephyrproject-rtos:mainfrom
nxp-upstream:main_ql_paf
Open

[noup] zephyr: add support for nan#119
Qingling-Wu wants to merge 2 commits intozephyrproject-rtos:mainfrom
nxp-upstream:main_ql_paf

Conversation

@Qingling-Wu
Copy link
Contributor

@Qingling-Wu Qingling-Wu commented Jan 30, 2026

[noup] zephyr: add NAN SDF frame detection in zephyr driver

Implement NAN Service Discovery Frame detection in the Zephyr WiFi
driver to support WiFi Aware functionality.

- Add is_nan_sdf_frame() to identify NAN SDF frames
- Generate EVENT_TX_WAIT_EXPIRE for NAN SDF TX completion
- Enable proper NAN discovery flow in Zephyr environment

hostap: Initialize NAN USD in wpa_supplicant

Add NAN Unsynchronized Service Discovery (USD) initialization

- Call wpas_nan_usd_init() during interface initialization

@Qingling-Wu Qingling-Wu force-pushed the main_ql_paf branch 2 times, most recently from 01c61a8 to 566596c Compare January 30, 2026 09:28
Comment on lines +669 to +678
#if CONFIG_WIFI_NM_WPA_SUPPLICANT_NAN
struct wpa_supplicant *wpa_s = if_ctx->supp_if_ctx;

if (wpa_s && is_nan_sdf_frame(frame, len))
{
wpa_printf(MSG_DEBUG, "NAN: Sending EVENT_TX_WAIT_EXPIRE");
wpa_supplicant_event_wrapper(if_ctx->supp_if_ctx,
EVENT_TX_WAIT_EXPIRE,
NULL);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please do this in a separate commit that provides context in the commit log?

Implement NAN Service Discovery Frame detection in the Zephyr WiFi
driver to support WiFi Aware functionality.

- Add is_nan_sdf_frame() to identify NAN SDF frames
- Generate EVENT_TX_WAIT_EXPIRE for NAN SDF TX completion
- Enable proper NAN discovery flow in Zephyr environment

Signed-off-by: Qingling Wu <qingling.wu@nxp.com>
Add NAN Unsynchronized Service Discovery (USD) initialization

- Call wpas_nan_usd_init() during interface initialization

Signed-off-by: Qingling Wu <qingling.wu@nxp.com>
u32 vendor_type = 0;

/* Minimum length: MAC header (24) + Category (1) + PA (1) + OUI+Type (4) */
if (len < 30)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you follow the coding style used in the other parts of this file.

if (len < 30) {
....
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments