History

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

Ayala Beker committed 10 years ago

Commit 368e5a71 parent 50bcd313 files · +94 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+18−0
@@ -863,6 +863,9 @@ · 862 unmodified lines
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. NAN869 * @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 { · 4116 unmodified lines
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 65006#define NL80211_NAN_FUNC_SERVICE_ID_LEN 6
4989#define NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN 0xff5007#define NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN 0xff
4990#define NL80211_NAN_FUNC_SRF_MAX_LEN 0xff5008#define NL80211_NAN_FUNC_SRF_MAX_LEN 0xff

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t