aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@intel.com>2014-11-07 07:31:35 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-11-10 04:20:14 -0500
commitf8d7552e945d38bd8d2e9c23aebf98042ce12302 (patch)
tree40592740dd326c8a2ebe6818f91d2b823852ca1c /include/uapi/linux
parent127f10ec6069aa0ddc214f14cb424198e1741256 (diff)
cfg80211: add channel switch started notification
Add a new NL80211_CH_SWITCH_STARTED_NOTIFY message that can be sent to the userspace when a channel switch process has started. This allows userspace to take action, for instance, by requesting other interfaces to switch channel as necessary. This patch introduces a function that allows the drivers to send this notification. It should be used when the driver starts processing a channel switch initiated by a remote device (eg. when a STA receives a CSA from the AP) and when it successfully starts a userspace-triggered channel switch (eg. when hostapd triggers a channel swith in the AP). Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/nl80211.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 9b3025e4377a..354163433352 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -645,6 +645,15 @@
645 * %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ and the 645 * %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ and the
646 * attributes determining channel width. 646 * attributes determining channel width.
647 * 647 *
648 * @NL80211_CMD_CH_SWITCH_STARTED_NOTIFY: Notify that a channel switch
649 * has been started on an interface, regardless of the initiator
650 * (ie. whether it was requested from a remote device or
651 * initiated on our own). It indicates that
652 * %NL80211_ATTR_IFINDEX will be on %NL80211_ATTR_WIPHY_FREQ
653 * after %NL80211_ATTR_CH_SWITCH_COUNT TBTT's. The userspace may
654 * decide to react to this indication by requesting other
655 * interfaces to change channel as well.
656 *
648 * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by 657 * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by
649 * its %NL80211_ATTR_WDEV identifier. It must have been created with 658 * its %NL80211_ATTR_WDEV identifier. It must have been created with
650 * %NL80211_CMD_NEW_INTERFACE previously. After it has been started, the 659 * %NL80211_CMD_NEW_INTERFACE previously. After it has been started, the
@@ -930,6 +939,8 @@ enum nl80211_commands {
930 NL80211_CMD_JOIN_OCB, 939 NL80211_CMD_JOIN_OCB,
931 NL80211_CMD_LEAVE_OCB, 940 NL80211_CMD_LEAVE_OCB,
932 941
942 NL80211_CMD_CH_SWITCH_STARTED_NOTIFY,
943
933 /* add new commands above here */ 944 /* add new commands above here */
934 945
935 /* used to define NL80211_CMD_MAX below */ 946 /* used to define NL80211_CMD_MAX below */