aboutsummaryrefslogtreecommitdiffstats
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 16:38:58 (GMT)
commit878ab3db8127c6e70d1b0a55e2f893d3e0678a49 (patch)
treecc89139af7c4062945b156c810d66404bf8c4ed8
parent129381b432eed75aac79a294b71cf0f9b1197f35 (diff)
downloadhostap-07-878ab3db8127c6e70d1b0a55e2f893d3e0678a49.zip
hostap-07-878ab3db8127c6e70d1b0a55e2f893d3e0678a49.tar.gz
hostap-07-878ab3db8127c6e70d1b0a55e2f893d3e0678a49.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. (cherry picked from commit 69a6b47aa0a4716ce8f3ceb253e5e1276cd4e85f)
-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);