aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2014-11-19 05:54:26 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-11-19 12:45:12 -0500
commit1057d35ede5dbf7ed7842357564fb42c9b54ba50 (patch)
treeffcef6d5d942a74a1f3f71fc5aab6d910398240d /include/uapi/linux
parentc2733905692589cc73928ffd65d26107536e80fe (diff)
cfg80211: introduce TDLS channel switch commands
Introduce commands to initiate and cancel TDLS channel-switching. Once TDLS channel-switching is started, the lower level driver is responsible for continually initiating channel-switch operations and returning to the base (AP) channel to listen for beacons from time to time. Upon cancellation of the channel-switch all communication between the relevant TDLS peers will continue on the base channel. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/nl80211.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index ccdeef28d672..365db67ca71d 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -762,6 +762,18 @@
762 * @NL80211_CMD_LEAVE_OCB: Leave the OCB network -- no special arguments, the 762 * @NL80211_CMD_LEAVE_OCB: Leave the OCB network -- no special arguments, the
763 * network is determined by the network interface. 763 * network is determined by the network interface.
764 * 764 *
765 * @NL80211_CMD_TDLS_CHANNEL_SWITCH: Start channel-switching with a TDLS peer,
766 * identified by the %NL80211_ATTR_MAC parameter. A target channel is
767 * provided via %NL80211_ATTR_WIPHY_FREQ and other attributes determining
768 * channel width/type. The target operating class is given via
769 * %NL80211_ATTR_OPER_CLASS.
770 * The driver is responsible for continually initiating channel-switching
771 * operations and returning to the base channel for communication with the
772 * AP.
773 * @NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH: Stop channel-switching with a TDLS
774 * peer given by %NL80211_ATTR_MAC. Both peers must be on the base channel
775 * when this command completes.
776 *
765 * @NL80211_CMD_MAX: highest used command number 777 * @NL80211_CMD_MAX: highest used command number
766 * @__NL80211_CMD_AFTER_LAST: internal use 778 * @__NL80211_CMD_AFTER_LAST: internal use
767 */ 779 */
@@ -943,6 +955,9 @@ enum nl80211_commands {
943 955
944 NL80211_CMD_CH_SWITCH_STARTED_NOTIFY, 956 NL80211_CMD_CH_SWITCH_STARTED_NOTIFY,
945 957
958 NL80211_CMD_TDLS_CHANNEL_SWITCH,
959 NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH,
960
946 /* add new commands above here */ 961 /* add new commands above here */
947 962
948 /* used to define NL80211_CMD_MAX below */ 963 /* used to define NL80211_CMD_MAX below */
@@ -1669,6 +1684,8 @@ enum nl80211_commands {
1669 * @NL80211_ATTR_SMPS_MODE: SMPS mode to use (ap mode). see 1684 * @NL80211_ATTR_SMPS_MODE: SMPS mode to use (ap mode). see
1670 * &enum nl80211_smps_mode. 1685 * &enum nl80211_smps_mode.
1671 * 1686 *
1687 * @NL80211_ATTR_OPER_CLASS: operating class
1688 *
1672 * @NL80211_ATTR_MAX: highest attribute number currently defined 1689 * @NL80211_ATTR_MAX: highest attribute number currently defined
1673 * @__NL80211_ATTR_AFTER_LAST: internal use 1690 * @__NL80211_ATTR_AFTER_LAST: internal use
1674 */ 1691 */
@@ -2021,6 +2038,8 @@ enum nl80211_attrs {
2021 2038
2022 NL80211_ATTR_SMPS_MODE, 2039 NL80211_ATTR_SMPS_MODE,
2023 2040
2041 NL80211_ATTR_OPER_CLASS,
2042
2024 /* add attributes here, update the policy in nl80211.c */ 2043 /* add attributes here, update the policy in nl80211.c */
2025 2044
2026 __NL80211_ATTR_AFTER_LAST, 2045 __NL80211_ATTR_AFTER_LAST,