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
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -863,6 +863,9 @@ · 862 unmodified lines | ||
| 863 | 863 | * the response to this command. |
| 864 | 864 | * Look at %NL80211_ATTR_SOCKET_OWNER as well. |
| 865 | 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 | 869 | * @NL80211_CMD_CHANGE_NAN_CONFIG: Change current NAN configuration. NAN |
| 867 | 870 | * must be operational (%NL80211_CMD_START_NAN was executed). |
| 868 | 871 | * It must contain at least one of the following attributes: |
| @@ -4985,6 +4988,21 @@ enum nl80211_nan_publish_type { · 4116 unmodified lines | ||
| 4985 | 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 | + */ | |
| 5000 | +enum 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 | 5006 | #define NL80211_NAN_FUNC_SERVICE_ID_LEN 6 |
| 4989 | 5007 | #define NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN 0xff |
| 4990 | 5008 | #define NL80211_NAN_FUNC_SRF_MAX_LEN 0xff |