summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSriram R2018-12-04 13:16:52 +0100
committerJohannes Berg2018-12-18 14:13:05 +0100
commit30c63115e20b70f89b7cfb66b35e2a0ef4b0ef07 (patch)
tree360700ca3908bc0d56e51d1e526a9af0123e3110 /include
parentmac80211: don't build AMSDU from GSO packets (diff)
downloadkernel-qcow2-linux-30c63115e20b70f89b7cfb66b35e2a0ef4b0ef07.tar.gz
kernel-qcow2-linux-30c63115e20b70f89b7cfb66b35e2a0ef4b0ef07.tar.xz
kernel-qcow2-linux-30c63115e20b70f89b7cfb66b35e2a0ef4b0ef07.zip
nl80211: Add support to notify radar event info received from STA
Currently radar detection and corresponding channel switch is handled at the AP device. STA ignores these detected radar events since the radar signal can be seen mostly by the AP as well. But in scenarios where a radar signal is seen only at STA, notifying this event to the AP which can trigger a channel switch can be useful. Stations can report such radar events autonomously through Spectrum management (Measurement Report) action frame to its AP. The userspace on processing the report can notify the kernel with the use of the added NL80211_CMD_NOTIFY_RADAR to indicate the detected event and inturn adding the reported channel to NOL. Signed-off-by: Sriram R <srirrama@codeaurora.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nl80211.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 4625a8624ba2..31ae5c7f10e3 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -1060,6 +1060,11 @@
* the measurement completed, using the measurement cookie
* (%NL80211_ATTR_COOKIE).
*
+ * @NL80211_CMD_NOTIFY_RADAR: Notify the kernel that a radar signal was
+ * detected and reported by a neighboring device on the channel
+ * indicated by %NL80211_ATTR_WIPHY_FREQ and other attributes
+ * determining the width and type.
+ *
* @NL80211_CMD_MAX: highest used command number
* @__NL80211_CMD_AFTER_LAST: internal use
*/
@@ -1278,6 +1283,8 @@ enum nl80211_commands {
NL80211_CMD_PEER_MEASUREMENT_RESULT,
NL80211_CMD_PEER_MEASUREMENT_COMPLETE,
+ NL80211_CMD_NOTIFY_RADAR,
+
/* add new commands above here */
/* used to define NL80211_CMD_MAX below */