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>
This commit is contained in:
Ilan Peer 2025-09-08 14:13:01 +03:00 committed by Johannes Berg
parent 78e3bd0133
commit 1884e2594b
2 changed files with 5 additions and 0 deletions

View File

@ -6681,6 +6681,9 @@ struct wireless_dev {
struct {
struct cfg80211_chan_def chandef;
} ocb;
struct {
u8 cluster_id[ETH_ALEN] __aligned(2);
} nan;
} u;
struct {

View File

@ -21865,6 +21865,8 @@ void cfg80211_nan_cluster_joined(struct wireless_dev *wdev,
trace_cfg80211_nan_cluster_joined(wdev, cluster_id, new_cluster);
memcpy(wdev->u.nan.cluster_id, cluster_id, ETH_ALEN);
msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp);
if (!msg)
return;