Solved it.
first
Code:
wpa_passphrase linksys "myPassword"
network={
ssid="linksys"
#psk="myPassword"
psk=d26b46ba343c694ae05f210d715e2618d24c3d231dd5e184aa9a0c4fb72fb71c
}
then
Code:
vi /etc/wpa_supplicant/wpa_supplicant.conf
and the edit the file to look like this
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
scan_ssid=1
ssid="linksys"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=d26b46ba343c694ae05f210d715e2618d24c3d231dd5e184aa9a0c4fb72fb71c
}
and then at the end
Code:
[root@localhost wifi-radar-2.0.s08]# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Trying to associate with 68:7f:74:f8:22:45 (SSID='linksys' freq=2412 MHz)
Associated with 68:7f:74:f8:22:45
WPA: Key negotiation completed with 68:7f:74:f8:22:45 [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 68:7f:74:f8:22:45 completed (auth) [id=0 id_str=]
now configure the interface with dhcp
Code:
[root@localhost Documents]$dhclient wlan0
And its working real smooth