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

wifi: cfg80211: Store the NAN cluster ID

When the driver indicates that the device has joined
a cluster, store the cluster ID. This is needed for data
path operations, e.g., filtering received frames etc.

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.63e9fef2a3aa.I6c858185c9e71f84bd2c5174d7ee45902b4391c3@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Ilan Peer and committed by
Johannes Berg
1884e259 78e3bd01

+5
+3
include/net/cfg80211.h
··· 6681 6681 struct { 6682 6682 struct cfg80211_chan_def chandef; 6683 6683 } ocb; 6684 + struct { 6685 + u8 cluster_id[ETH_ALEN] __aligned(2); 6686 + } nan; 6684 6687 } u; 6685 6688 6686 6689 struct {
+2
net/wireless/nl80211.c
··· 21865 21865 21866 21866 trace_cfg80211_nan_cluster_joined(wdev, cluster_id, new_cluster); 21867 21867 21868 + memcpy(wdev->u.nan.cluster_id, cluster_id, ETH_ALEN); 21869 + 21868 21870 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); 21869 21871 if (!msg) 21870 21872 return;