Z-Com XG-762N manual Working with Linux WPA supplicant, Setup the Linux wpa supplicant

Page 10

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

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:

tar zxvf wpa_supplicant.tar.gz

Then, a subdirectory of wpa_supplicant/ will be created under the current directory.

-Enter subdirectory wpa_supplicant/

-Delete the original .config file by:

rm ¨f .config

-Edit Makefile, make sure the following statements in mkconfig: section:

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

-Create the new .config file by: make mkconfig

-Now, we can build the Linux wpa supplicant by entering following command: make

After make process completed, A executable file wpa_supplicant created.

- To create a WPA PSK connection, please modify the configuration file (For detailed

10

Image 10
Contents User Guide of XG-762N USB Linux Driver Introduction RequirementsBuilding the device driver Build and install the driverInstall individual driver Package ExtractionBuild the debugging tool Load the driver Configure the Wireless settingsGetting Start Open the network interfacePrivate commands Key/encryptionGet MAC mode Set authentication typeSet MAC mode Connect to the given Access PointDynamical Region SettingFor 802.11b/g only Activate MIC Fail Counter Measure FeatureGet IP setting from Dhcp Set up IP addressFixed Setting Setting Access PointSetup the Linux wpa supplicant Working with Linux WPA supplicantId.pem is created by Page Special Mode for Embedded Station Chariot Test Customization of VID/PID TablePage Turbo Mode Enable Burst ModePage Conclusion