aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorAyala Beker <ayala.beker@intel.com>2016-09-20 10:31:18 -0400
committerJohannes Berg <johannes.berg@intel.com>2016-09-30 07:21:37 -0400
commit368e5a7b4ecb71b3d347799cb9351b0dce5dec70 (patch)
treecda90e8ee392418e6471d920a7043f1b55e72e5e /include/uapi/linux
parent50bcd31d9992e99c231820f5276e70346cbfbc51 (diff)
cfg80211: Provide an API to report NAN function termination
Provide a function that reports NAN DE function termination. The function may be terminated due to one of the following reasons: user request, ttl expiration or failure. If the NAN instance is tied to the owner, the notification will be sent to the socket that started the NAN interface only Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Luca 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.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 995bf802d604..56368e9b4622 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -863,6 +863,9 @@
863 * the response to this command. 863 * the response to this command.
864 * Look at %NL80211_ATTR_SOCKET_OWNER as well. 864 * Look at %NL80211_ATTR_SOCKET_OWNER as well.
865 * @NL80211_CMD_DEL_NAN_FUNCTION: Delete a NAN function by cookie. 865 * @NL80211_CMD_DEL_NAN_FUNCTION: Delete a NAN function by cookie.
866 * This command is also used as a notification sent when a NAN function is
867 * terminated. This will contain a %NL80211_ATTR_NAN_FUNC_INST_ID
868 * and %NL80211_ATTR_COOKIE attributes.
866 * @NL80211_CMD_CHANGE_NAN_CONFIG: Change current NAN configuration. NAN 869 * @NL80211_CMD_CHANGE_NAN_CONFIG: Change current NAN configuration. NAN
867 * must be operational (%NL80211_CMD_START_NAN was executed). 870 * must be operational (%NL80211_CMD_START_NAN was executed).
868 * It must contain at least one of the following attributes: 871 * It must contain at least one of the following attributes:
@@ -4985,6 +4988,21 @@ enum nl80211_nan_publish_type {
4985 NL80211_NAN_UNSOLICITED_PUBLISH = 1 << 1, 4988 NL80211_NAN_UNSOLICITED_PUBLISH = 1 << 1,
4986}; 4989};
4987 4990
4991/**
4992 * enum nl80211_nan_func_term_reason - NAN functions termination reason
4993 *
4994 * Defines termination reasons of a NAN function
4995 *
4996 * @NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST: requested by user
4997 * @NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED: timeout
4998 * @NL80211_NAN_FUNC_TERM_REASON_ERROR: errored
4999 */
5000enum nl80211_nan_func_term_reason {
5001 NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST,
5002 NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED,
5003 NL80211_NAN_FUNC_TERM_REASON_ERROR,
5004};
5005
4988#define NL80211_NAN_FUNC_SERVICE_ID_LEN 6 5006#define NL80211_NAN_FUNC_SERVICE_ID_LEN 6
4989#define NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN 0xff 5007#define NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN 0xff
4990#define NL80211_NAN_FUNC_SRF_MAX_LEN 0xff 5008#define NL80211_NAN_FUNC_SRF_MAX_LEN 0xff