diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-05-11 14:57:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-13 15:44:37 -0400 |
commit | 3f77316c6b99f596bfbf72c0542f47f7230b702e (patch) | |
tree | d9c8634e62917687c9a2741fdd72dd2c19c04727 /include/linux/nl80211.h | |
parent | eccb8e8f0c3af47aeb6dbe4012eb8d4fc888767a (diff) |
nl80211: Add IEEE 802.1X PAE control for station mode
Add a new NL80211_ATTR_CONTROL_PORT flag for NL80211_CMD_ASSOCIATE to
allow user space to indicate that it will control the IEEE 802.1X port
in station mode. Previously, mac80211 was always marking the port
authorized in station mode. This was enough when drop_unencrypted flag
was set. However, drop_unencrypted can currently be controlled only
with WEXT and the current nl80211 design does not allow fully secure
configuration. Fix this by providing a mechanism for user space to
control the IEEE 802.1X port in station mode (i.e., do the same that
we are already doing in AP mode).
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r-- | include/linux/nl80211.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index aeefccfac0e1..2781525b03d5 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -504,6 +504,13 @@ enum nl80211_commands { | |||
504 | * @NL80211_ATTR_STA_FLAGS2: Attribute containing a | 504 | * @NL80211_ATTR_STA_FLAGS2: Attribute containing a |
505 | * &struct nl80211_sta_flag_update. | 505 | * &struct nl80211_sta_flag_update. |
506 | * | 506 | * |
507 | * @NL80211_ATTR_CONTROL_PORT: A flag indicating whether user space controls | ||
508 | * IEEE 802.1X port, i.e., sets/clears %NL80211_STA_FLAG_AUTHORIZED, in | ||
509 | * station mode. If the flag is included in %NL80211_CMD_ASSOCIATE | ||
510 | * request, the driver will assume that the port is unauthorized until | ||
511 | * authorized by user space. Otherwise, port is marked authorized by | ||
512 | * default in station mode. | ||
513 | * | ||
507 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 514 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
508 | * @__NL80211_ATTR_AFTER_LAST: internal use | 515 | * @__NL80211_ATTR_AFTER_LAST: internal use |
509 | */ | 516 | */ |
@@ -610,6 +617,8 @@ enum nl80211_attrs { | |||
610 | 617 | ||
611 | NL80211_ATTR_STA_FLAGS2, | 618 | NL80211_ATTR_STA_FLAGS2, |
612 | 619 | ||
620 | NL80211_ATTR_CONTROL_PORT, | ||
621 | |||
613 | /* add attributes here, update the policy in nl80211.c */ | 622 | /* add attributes here, update the policy in nl80211.c */ |
614 | 623 | ||
615 | __NL80211_ATTR_AFTER_LAST, | 624 | __NL80211_ATTR_AFTER_LAST, |