Commit ea841520 authored by Aditya Kumar Singh's avatar Aditya Kumar Singh Committed by Johannes Berg
Browse files

wifi: nl80211: store chandef on the correct link when starting CAC



Link ID to store chandef is still being used as 0 even in case of MLO which
is incorrect. This leads to issue during CAC completion where link 0 as well
gets stopped.

Fixes: 0b779823 ("wifi: cfg80211/mac80211: use proper link ID for DFS")
Signed-off-by: default avatarAditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Link: https://patch.msgid.link/20250314-fix_starting_cac_during_mlo-v1-1-3b51617d7ea5@oss.qualcomm.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent c924c5e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10182,7 +10182,7 @@ static int nl80211_start_radar_detection(struct sk_buff *skb,
	switch (wdev->iftype) {
	case NL80211_IFTYPE_AP:
	case NL80211_IFTYPE_P2P_GO:
		wdev->links[0].ap.chandef = chandef;
		wdev->links[link_id].ap.chandef = chandef;
		break;
	case NL80211_IFTYPE_ADHOC:
		wdev->u.ibss.chandef = chandef;