ssid="example"
key_mgmt=WPA-EAP
eap=PEAP
identity="jhsieh"
password="jhsieh"
ca_cert="/etc/cert/fluffy.pem"
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
priority=10
}
- After modifying, use the following command to setup WPA connection.
If the zd1211 is not open yet, please open it firstly by command:
]$ ifconfig eth1 up <IP address of the network interface>
After network interface is opened, enter the command to build wpa psk
connection:
]$ ./wpa_supplicant -ieth1 -c wpa_supplicant_psk.conf -d -D zydas
To build wpa eap-tls
]$ ./wpa_supplicant -ieth1 -c wpa_supplicant_tls.conf -d -D zydas
To build wpa peap:
]$ ./wpa_supplicant -ieth1 -c wpa_supplicant_peap.conf -d -D zydas
note:
@-i: interface name: eth1
@-c: Configuration file: wpa_supplicant_psk.conf
@-D: The name of network interface.
You will see the following message if wpa-psk connection is built successfully.
...
WPA: Sending EAPOL-Key 2/2 ---> The Group handshake is about to finish.
...
EAPOL: SUPP_PAE entering state SUCCESS
EAP: EAP entering state SUCCESS
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: SUPP_BE entering state IDLE
Note of wpa supplicant operation issue:
The WPA supplicant should be keep running during connection. If you press
Ctrl-C to stop the wpa supplicant, it will also close the network interface card
by "zd1211_close" call back routine. So you have to issue ifconfig ethx up again
before using the network interface card.
4.
Conclusion
This document doesn’t explain how to setup the wireless LAN environment in detail. One
may get some problems when setting up the wireless LAN environment. If you have any
question about how to set up the environment, you can send an e-mail to us or find the