projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f4ffde
)
nl80211: allow CAC only if no operation is going on
author
Simon Wunderlich
<simon.wunderlich@s2003.tu-chemnitz.de>
Tue, 3 Sep 2013 17:43:18 +0000
(19:43 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 1 Oct 2013 11:05:59 +0000
(13:05 +0200)
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>
net/wireless/nl80211.c
patch
|
blob
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index ae617112b8f509eae7fb9660bcc9d768d0d9046e..2838206ddad3b5b05ea2eb2a6bfbc281593f9b41 100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-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;