History

cfg80211: Specify the reason for connect timeout

This enhances the connect timeout API to also carry the reason for the timeout. These reason codes for the connect time out are represented by enum nl80211_timeout_reason and are passed to user space through a new attribute NL80211_ATTR_TIMEOUT_REASON (u32).

Purushottam Kushwaha committed 9 years ago

Commit 3093ebb1 parent bf95ecd8 files · +78 −22Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+21−0
@@ -1996,6 +1996,10 @@ enum nl80211_commands { · 1995 unmodified lines
19961996 * better BSSs. The attribute value is a packed structure
19971997 * value as specified by &struct nl80211_bss_select_rssi_adjust.
19981998 *
1999+ * @NL80211_ATTR_TIMEOUT_REASON: The reason for which an operation timed out.
2000+ * u32 attribute with an &enum nl80211_timeout_reason value. This is used,
2001+ * e.g., with %NL80211_CMD_CONNECT event.
2002+ *
19992003 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
20002004 * @NL80211_ATTR_MAX: highest attribute number currently defined
20012005 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -2405,6 +2409,8 @@ enum nl80211_attrs { · 403 unmodified lines
24052409 NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI,
24062410 NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST,
24072411
2412+ NL80211_ATTR_TIMEOUT_REASON,
2413+
24082414 /* add attributes here, update the policy in nl80211.c */
24092415
24102416 __NL80211_ATTR_AFTER_LAST,
@@ -4788,6 +4794,21 @@ enum nl80211_connect_failed_reason { · 2377 unmodified lines
47884794 NL80211_CONN_FAIL_BLOCKED_CLIENT,
47894795 };
47904796
4797+/**
4798+ * enum nl80211_timeout_reason - timeout reasons
4799+ *
4800+ * @NL80211_TIMEOUT_UNSPECIFIED: Timeout reason unspecified.
4801+ * @NL80211_TIMEOUT_SCAN: Scan (AP discovery) timed out.
4802+ * @NL80211_TIMEOUT_AUTH: Authentication timed out.
4803+ * @NL80211_TIMEOUT_ASSOC: Association timed out.
4804+ */
4805+enum nl80211_timeout_reason {
4806+ NL80211_TIMEOUT_UNSPECIFIED,
4807+ NL80211_TIMEOUT_SCAN,
4808+ NL80211_TIMEOUT_AUTH,
4809+ NL80211_TIMEOUT_ASSOC,
4810+};
4811+
47914812 /**
47924813 * enum nl80211_scan_flags - scan request control flags
47934814 *