History

cfg80211: support immediate reconnect request hint

There are cases where it's necessary to disconnect, but an immediate reconnection is desired. Support a hint to userspace that this is the case, by including a new attribute in the deauth or disassoc event.

Johannes Berg committed 5 years ago

Commit 3bb02141 parent a5a55037 files · +55 −29Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+6−0
@@ -2535,6 +2535,10 @@ enum nl80211_commands { · 2534 unmodified lines
25352535 * This is a u8 attribute that encapsulates one of the values from
25362536 * &enum nl80211_sae_pwe_mechanism.
25372537 *
2538+ * @NL80211_ATTR_RECONNECT_REQUESTED: flag attribute, used with deauth and
2539+ * disassoc events to indicate that an immediate reconnect to the AP
2540+ * is desired.
2541+ *
25382542 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
25392543 * @NL80211_ATTR_MAX: highest attribute number currently defined
25402544 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -3026,6 +3030,8 @@ enum nl80211_attrs { · 485 unmodified lines
30263030
30273031 NL80211_ATTR_SAE_PWE,
30283032
3033+ NL80211_ATTR_RECONNECT_REQUESTED,
3034+
30293035 /* add attributes here, update the policy in nl80211.c */
30303036
30313037 __NL80211_ATTR_AFTER_LAST,