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
571 * well to remain backwards compatible.571 * well to remain backwards compatible.
572 * @NL80211_CMD_ROAM: request that the card roam (currently not implemented),572 * @NL80211_CMD_ROAM: request that the card roam (currently not implemented),
573 * sent as an event when the card/driver roamed by itself.573 * 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.
574 * @NL80211_CMD_DISCONNECT: drop a given connection; also used to notify580 * @NL80211_CMD_DISCONNECT: drop a given connection; also used to notify
575 * userspace that a connection was dropped by the AP or due to other581 * userspace that a connection was dropped by the AP or due to other
576 * reasons, for this the %NL80211_ATTR_DISCONNECTED_BY_AP and582 * reasons, for this the %NL80211_ATTR_DISCONNECTED_BY_AP and
@@ -2130,6 +2136,10 @@ enum nl80211_commands { · 1553 unmodified lines
2130 * in %NL80211_CMD_CONNECT to indicate that for 802.1X authentication it2136 * in %NL80211_CMD_CONNECT to indicate that for 802.1X authentication it
2131 * wants to use the supported offload of the 4-way handshake.2137 * wants to use the supported offload of the 4-way handshake.
2132 * @NL80211_ATTR_PMKR0_NAME: PMK-R0 Name for offloaded FT.2138 * @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).
2133 *2143 *
2134 * @NUM_NL80211_ATTR: total number of nl80211_attrs available2144 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
2135 * @NL80211_ATTR_MAX: highest attribute number currently defined2145 * @NL80211_ATTR_MAX: highest attribute number currently defined
@@ -2555,6 +2565,7 @@ enum nl80211_attrs { · 419 unmodified lines
2555 2565
2556 NL80211_ATTR_WANT_1X_4WAY_HS,2566 NL80211_ATTR_WANT_1X_4WAY_HS,
2557 NL80211_ATTR_PMKR0_NAME,2567 NL80211_ATTR_PMKR0_NAME,
2568 NL80211_ATTR_PORT_AUTHORIZED,
2558 2569
2559 /* add attributes here, update the policy in nl80211.c */2570 /* add attributes here, update the policy in nl80211.c */
2560 2571