aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.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 /wpa_supplicant/driver_i.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 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 75a800c..4cb5372 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -438,4 +438,14 @@ static inline int wpa_drv_sta_set_flags(struct wpa_supplicant *wpa_s,
return -1;
}
+static inline int wpa_drv_set_supp_port(struct wpa_supplicant *wpa_s,
+ int authorized)
+{
+ if (wpa_s->driver->set_supp_port) {
+ return wpa_s->driver->set_supp_port(wpa_s->drv_priv,
+ authorized);
+ }
+ return 0;
+}
+
#endif /* DRIVER_I_H */