History

nl80211: add authorized flag to ROAM event

Drivers that initiate roaming while being connected to a network that uses 802.1X authentication need to inform user space if 802.1X authentication is further required after roaming. For example, when using the Fast transition protocol, roaming within the mobility domain does not require new 802.1X authentication, but roaming to another mobility domain does. In addition, some drivers may not support 802.1X authentication (so it has to be done in user space), while other drivers do. Add a flag to the roaming notification to indicate if user space is required to do 802.1X authentication after the roaming or not. This flag will only be used for networks that use 802.1X authentication. For networks that do not use 802.1X authentication it is assumed that no further action is required from user space after the roaming notification.

Avraham Stern committed 9 years ago

Commit f45cbe61 parent 3a00df54 files · +19 −1Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+11−0
@@ -571,6 +571,12 @@ · 570 unmodified lines
571571 * well to remain backwards compatible.
572572 * @NL80211_CMD_ROAM: request that the card roam (currently not implemented),
573573 * sent as an event when the card/driver roamed by itself.
574+ * When used as an event, and the driver roamed in a network that requires
575+ * 802.1X authentication, %NL80211_ATTR_PORT_AUTHORIZED should be set
576+ * if the 802.1X authentication was done by the driver or if roaming was
577+ * done using Fast Transition protocol (in which case 802.1X authentication
578+ * is not needed). If %NL80211_ATTR_PORT_AUTHORIZED is not set, user space
579+ * is responsible for the 802.1X authentication.
574580 * @NL80211_CMD_DISCONNECT: drop a given connection; also used to notify
575581 * userspace that a connection was dropped by the AP or due to other
576582 * reasons, for this the %NL80211_ATTR_DISCONNECTED_BY_AP and
@@ -2130,6 +2136,10 @@ enum nl80211_commands { · 1553 unmodified lines
21302136 * in %NL80211_CMD_CONNECT to indicate that for 802.1X authentication it
21312137 * wants to use the supported offload of the 4-way handshake.
21322138 * @NL80211_ATTR_PMKR0_NAME: PMK-R0 Name for offloaded FT.
2139+ * @NL80211_ATTR_PORT_AUTHORIZED: flag attribute used in %NL80211_CMD_ROAMED
2140+ * notification indicating that that 802.1X authentication was done by
2141+ * the driver or is not needed (because roaming used the Fast Transition
2142+ * protocol).
21332143 *
21342144 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
21352145 * @NL80211_ATTR_MAX: highest attribute number currently defined
@@ -2555,6 +2565,7 @@ enum nl80211_attrs { · 419 unmodified lines
25552565
25562566 NL80211_ATTR_WANT_1X_4WAY_HS,
25572567 NL80211_ATTR_PMKR0_NAME,
2568+ NL80211_ATTR_PORT_AUTHORIZED,
25582569
25592570 /* add attributes here, update the policy in nl80211.c */
25602571