Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: cfg80211: Support Tx/Rx of action frame for NAN

Add support for sending and receiving action frames over a NAN Device
interface:

- For Synchronized NAN operation NAN Service Discovery
Frames (SDFs) and NAN Action Frames (NAFs) transmissions
over a NAN Device interface, a channel parameter is not
mandatory as the frame can be transmitted based on the NAN
Device schedule.
- For Unsynchronized NAN Discovery (USD) operation the
SDFs and NAFs could be transmitted using NL80211_CMD_FRAME
where a specific channel and dwell time are configured.

As Synchronized NAN Operation and USD can be done concurrently,
both modes need to be supported. Thus, allow sending NAN action
frames when user space handles the NAN Discovery Engine (DE) with
and without providing a channel as a parameter.

To support reception of NAN Action frames and Authentication
frames (used for NAN paring and verification) allow to
register for management frame reception of NAN Device interface
when user space handles the NAN DE.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250908140015.71da2b062929.I0166d51dcf14393f628cd5da366c21114f518618@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Ilan Peer and committed by
Johannes Berg
78e3bd01 b9c3d426

+6 -2
+6 -2
net/wireless/nl80211.c
··· 13782 13782 break; 13783 13783 case NL80211_IFTYPE_NAN: 13784 13784 if (!wiphy_ext_feature_isset(wdev->wiphy, 13785 - NL80211_EXT_FEATURE_SECURE_NAN)) 13785 + NL80211_EXT_FEATURE_SECURE_NAN) && 13786 + !(wdev->wiphy->nan_capa.flags & 13787 + WIPHY_NAN_FLAGS_USERSPACE_DE)) 13786 13788 return -EOPNOTSUPP; 13787 13789 break; 13788 13790 default: ··· 13845 13843 break; 13846 13844 case NL80211_IFTYPE_NAN: 13847 13845 if (!wiphy_ext_feature_isset(wdev->wiphy, 13848 - NL80211_EXT_FEATURE_SECURE_NAN)) 13846 + NL80211_EXT_FEATURE_SECURE_NAN) && 13847 + !(wdev->wiphy->nan_capa.flags & 13848 + WIPHY_NAN_FLAGS_USERSPACE_DE)) 13849 13849 return -EOPNOTSUPP; 13850 13850 break; 13851 13851 default: