aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-07-18 03:25:41 (GMT)
committerJouni Malinen <j@w1.fi>2010-07-18 03:25:41 (GMT)
commit69a6b47aa0a4716ce8f3ceb253e5e1276cd4e85f (patch)
treee9f218a0e443b616be1db686faf7c14243dad5a1 /wpa_supplicant/wpas_glue.c
parentc01106f3e8a3b83964aa1f8cd64a4400218fb1d8 (diff)
downloadhostap-69a6b47aa0a4716ce8f3ceb253e5e1276cd4e85f.zip
hostap-69a6b47aa0a4716ce8f3ceb253e5e1276cd4e85f.tar.gz
hostap-69a6b47aa0a4716ce8f3ceb253e5e1276cd4e85f.tar.bz2
Fix wpa_supplicant AP mode to ignore EAPOL Supplicant port callback
This is needed to avoid setting EAPOL PAE port status incorrectly when using wpa_supplicant to control AP mode operations.
Diffstat (limited to 'wpa_supplicant/wpas_glue.c')
-rw-r--r--wpa_supplicant/wpas_glue.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index a3622b3..4af0cd0 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -560,6 +560,14 @@ static void wpa_supplicant_eap_param_needed(void *ctx, const char *field,
static void wpa_supplicant_port_cb(void *ctx, int authorized)
{
struct wpa_supplicant *wpa_s = ctx;
+#ifdef CONFIG_AP
+ if (wpa_s->ap_iface) {
+ wpa_printf(MSG_DEBUG, "AP mode active - skip EAPOL Supplicant "
+ "port status: %s",
+ authorized ? "Authorized" : "Unauthorized");
+ return;
+ }
+#endif /* CONFIG_AP */
wpa_printf(MSG_DEBUG, "EAPOL: Supplicant port status: %s",
authorized ? "Authorized" : "Unauthorized");
wpa_drv_set_supp_port(wpa_s, authorized);