aboutsummaryrefslogtreecommitdiffstats
path: root/src/eapol_supp/eapol_supp_sm.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-04-22 13:01:37 (GMT)
committerJouni Malinen <j@w1.fi>2009-04-22 13:01:37 (GMT)
commit4bc181ecc7e918759a032c4c37ac4e7f6f47e147 (patch)
tree46996dc7b99b5e390d18aefc519a0c4bf99e94b3 /src/eapol_supp/eapol_supp_sm.h
parentf55802e8bfe8725efa238f1393a8d234f4e51d03 (diff)
downloadhostap-4bc181ecc7e918759a032c4c37ac4e7f6f47e147.zip
hostap-4bc181ecc7e918759a032c4c37ac4e7f6f47e147.tar.gz
hostap-4bc181ecc7e918759a032c4c37ac4e7f6f47e147.tar.bz2
Add new wpa_supplicant driver op for setting 802.1X port status
This can be used with drivers that implement PAE to control whether normal data frames (non-EAPOL) are allowed.
Diffstat (limited to 'src/eapol_supp/eapol_supp_sm.h')
-rw-r--r--src/eapol_supp/eapol_supp_sm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/eapol_supp/eapol_supp_sm.h b/src/eapol_supp/eapol_supp_sm.h
index 57d7bc1..e6e8cc6 100644
--- a/src/eapol_supp/eapol_supp_sm.h
+++ b/src/eapol_supp/eapol_supp_sm.h
@@ -215,6 +215,13 @@ struct eapol_ctx {
*/
void (*eap_param_needed)(void *ctx, const char *field,
const char *txt);
+
+ /**
+ * port_cb - Set port authorized/unauthorized callback (optional)
+ * @ctx: Callback context (ctx)
+ * @authorized: Whether the supplicant port is now in authorized state
+ */
+ void (*port_cb)(void *ctx, int authorized);
};