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).
Showing the changes to include/uapi/linux (1 of 8 files). Show all
Unified · Split
| @@ -1996,6 +1996,10 @@ enum nl80211_commands { · 1995 unmodified lines | |||
| 1996 | * better BSSs. The attribute value is a packed structure | 1996 | * better BSSs. The attribute value is a packed structure |
| 1997 | * value as specified by &struct nl80211_bss_select_rssi_adjust. | 1997 | * value as specified by &struct nl80211_bss_select_rssi_adjust. |
| 1998 | * | 1998 | * |
| 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 | * | ||
| 1999 | * @NUM_NL80211_ATTR: total number of nl80211_attrs available | 2003 | * @NUM_NL80211_ATTR: total number of nl80211_attrs available |
| 2000 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 2004 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 2001 | * @__NL80211_ATTR_AFTER_LAST: internal use | 2005 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| @@ -2405,6 +2409,8 @@ enum nl80211_attrs { · 403 unmodified lines | |||
| 2405 | NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI, | 2409 | NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI, |
| 2406 | NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST, | 2410 | NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST, |
| 2407 | 2411 | ||
| 2412 | NL80211_ATTR_TIMEOUT_REASON, | ||
| 2413 | |||
| 2408 | /* add attributes here, update the policy in nl80211.c */ | 2414 | /* add attributes here, update the policy in nl80211.c */ |
| 2409 | 2415 | ||
| 2410 | __NL80211_ATTR_AFTER_LAST, | 2416 | __NL80211_ATTR_AFTER_LAST, |
| @@ -4788,6 +4794,21 @@ enum nl80211_connect_failed_reason { · 2377 unmodified lines | |||
| 4788 | NL80211_CONN_FAIL_BLOCKED_CLIENT, | 4794 | NL80211_CONN_FAIL_BLOCKED_CLIENT, |
| 4789 | }; | 4795 | }; |
| 4790 | 4796 | ||
| 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 | |||
| 4791 | /** | 4812 | /** |
| 4792 | * enum nl80211_scan_flags - scan request control flags | 4813 | * enum nl80211_scan_flags - scan request control flags |
| 4793 | * | 4814 | * |