Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff311bc1 authored by Simon Wunderlich's avatar Simon Wunderlich Committed by Johannes Berg
Browse files

nl80211: allow CAC only if no operation is going on



A CAC should fail if it is triggered while the interface is already
running.

Signed-off-by: default avatarSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: default avatarMathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 1f4ffde8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5591,6 +5591,9 @@ static int nl80211_start_radar_detection(struct sk_buff *skb,
	if (err)
		return err;

	if (netif_carrier_ok(dev))
		return -EBUSY;

	if (wdev->cac_started)
		return -EBUSY;