]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: cfg80211: cleanup cluster_id when stopping NAN
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 7 Jan 2026 12:22:53 +0000 (14:22 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jan 2026 09:18:49 +0000 (10:18 +0100)
When NAN is stopped, cluster_id should be set to 0 to indicate that we
are not part of any cluster.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260107142229.9ccb700797ec.I890ac852be6ca0093995655d987ca5c28a26ce3d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c

index 22f29a1122dc0fae72c012a966a08447b45b895e..9af85d655027f79c66529e33644a3fcabf020b4a 100644 (file)
@@ -265,6 +265,8 @@ void cfg80211_stop_nan(struct cfg80211_registered_device *rdev,
        rdev_stop_nan(rdev, wdev);
        wdev->is_running = false;
 
+       eth_zero_addr(wdev->u.nan.cluster_id);
+
        rdev->opencount--;
 }