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

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