Skip to content

Commit ff311bc

Browse files
Simon Wunderlichjmberg-intel
authored andcommitted
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: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 1f4ffde commit ff311bc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎net/wireless/nl80211.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5591,6 +5591,9 @@ static int nl80211_start_radar_detection(struct sk_buff *skb,
55915591
if (err)
55925592
return err;
55935593

5594+
if (netif_carrier_ok(dev))
5595+
return -EBUSY;
5596+
55945597
if (wdev->cac_started)
55955598
return -EBUSY;
55965599

0 commit comments

Comments
 (0)