- Z-Com, Inc. Network Card User Manual
10
3.6 Working with Linux WPA supplicant
Note: I do the following procedure in Fedora Core2, for other distribution package, you
may need install additional libraries(ex. openssl) required to build the wpa supplicant..
3.6.1 Setup the Linux wpa supplicant
- Copy wpa_supplicant.tar.gz file into a subdirectory on Linux system(e.g:/root).
- Unzip it by using command:
Then, a subdirectory of wpa_supplicant/ will be created under the current
directory.
- Enter subdirectory wpa_supplicant/
- Delete the original .config file by:
- Edit Makefile, make sure the following statements in mkconfig: section:
- Create the new .config file by:
- Now, we can build the Linux wpa supplicant by entering following command:
After make process completed, A executable file wpa_supplicant created.
- To create a WPA PSK connection, please modify the configuration file (For detailed
tar zxvf
wpa_supplicant.tar.gz
make
make mkconfig
echo CONFIG_IEEE8021X_EAPOL=y >> .config
echo CONFIG_EAP_MD5=y >> .config
echo CONFIG_MSCHAPV2=y >> .config
echo CONFIG_EAP_PEAP=y >> .config
echo CONFIG_EAP_TLS=y >> .config
echo CONFIG_DRIVER_WEXT=y >> .config
echo CONFIG_WIRELESS_EXTENSION=y >> .config
echo CONFIG_DRIVER_ZYDAS=y >> .config
rm
¨C
f
.config
iwconfig ethx mode master // Set to AP mode
iwconfig ethx essid ssid // Set ssid
iwpriv ethx set_mac_mode mac_mode //Ref section 3.4.4 Set MAC mode
iwconfig ethx channel channel# // Available channel # is1,2,3,4..etc