#include "includes.h"
-#include "hostapd.h"
+#include "common.h"
#include "ieee802_1x.h"
#include "eapol_sm.h"
#include "eloop.h"
sm->portControl = Auto;
if (!eapol->conf.wpa &&
- (hapd->default_wep_key || eapol->conf.individual_wep_key_len > 0))
+ (eapol->default_wep_key || eapol->conf.individual_wep_key_len > 0))
sm->keyTxEnabled = TRUE;
else
sm->keyTxEnabled = FALSE;
return NULL;
}
+ if (conf->individual_wep_key_len > 0) {
+ /* use key0 in individual key and key1 in broadcast key */
+ eapol->default_wep_key_idx = 1;
+ }
+
eapol->cb.eapol_send = cb->eapol_send;
eapol->cb.aaa_send = cb->aaa_send;
eapol->cb.finished = cb->finished;
return;
eapol_auth_conf_free(&eapol->conf);
+ os_free(eapol->default_wep_key);
os_free(eapol);
}