3.1. Compiling eapol_test Previous topic Parent topic Child topic Next topic

eapol_test is a part of wpa_supplicant suite Opens in new window. It is a tool for testing Radiator EAP-SIM, EAP-AKA, and EAP-AKA' protocols. You can configure it to act as a supplicant to generate RADIUS requests which are sent directly to the RADIUS server. With eapol_test, you can test the system without the hardware client, supplicant, and wireless access point.
Note
The eapol_test configuration .config file is in directory wpa_supplicant/. After creating or updating it, always rerun make eapol_test because the eapol_test target is not a part of the default make target.

Enabling SIM method

EAP-SIM is not enabled by default. If you try to test it when it is disabled, the following error occurs:
Line 19: unknown EAP method 'SIM'
You may need to add support for this EAP method during wpa_supplicant build time configuration.
See README for more information.
To enable EAP-SIM, add CONFIG_EAP_SIM to .config file and re-compile:
echo CONFIG_EAP_SIM=y >> .config
make eapol_test

Enabling Milenage SIM emulator for EAP-SIM

To be able to use format password="Ki:OPc" in eapol_test .config file, eapol_test must be compiled with the internal GSM-Milenage implementation. If it is not compiled, the authentication process gives the following error message:
EAP-SIM: 3 challenges
EAP-SIM: GSM authentication algorithm
EAP-SIM: No GSM authentication algorithm enabled
EAP-SIM: GSM authentication failed
To compile the eapol_test with the internal GSM-Milenage implementation:
echo CONFIG_SIM_SIMULATOR=y >> .config
make eapol_test

Enabling AKA methods and USIM simulator

EAP-AKA and EAP-AKA' require similar configuration than EAP-SIM. For EAP-AKA and EAP-AKA' the Milenage parameters are defined in format password="Ki:OPc:SQN" in eapol_test .config file.
To enable the AKA methods and USIM (Universal Subscriber Identity Module) simulator:
echo CONFIG_EAP_AKA=y >> .config
echo CONFIG_EAP_AKA_PRIME=y >> .config
echo CONFIG_USIM_SIMULATOR=y >> .config
make eapol_test