WPA2 Help
2012-05-25 10:18:08 GMT
Hello.
I use Debian squeeze 6.0.5, kernel 2.6.32-5-amd64.
I am trying to connect to my phone's router using WPA2 PSK, without results.
There is any problem using open protocol, without encryption, but I want to use WPA.
A message I have seen is “scanning” as a result of wpa_cli.
Anybody can help ?
Please answer to polarship <at> hotmail.com and you will get a place in heaven.
Usually I connect to belkin54g
but sometimes I want to use WPA2 to connect to WLAN02, my phone's router.
And after using WLAN02, i would like to connect back to belkin54g without having to reboot.
Any answers for the reason I have to reboot to connect again to belkin54g ?
=============================================================
### This File: /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface. wireless-* options are implemented by the wireless-tools package
allow-hotplug wlan0
iface wlan0 inet dhcp
# pre-up wpa_supplicant -B -iwlan0 -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf
# post-down killall -q wpa_supplicant
wireless-mode managed
## Address: 00:11:50:35:D8:83
wireless-essid belkin54g
## wireless-key s:
## Address: B0:EC:71:4C:05:A0
# wireless-essid WLAN02
## wireless-key s:
# wireless-key s:xxxxxxxx
dns-nameservers 80.58.61.250,80.58.61.254
=============================================================
I use the script NET-RESTART.sh to connect:
=============================================================
##!/bin/sh
#/etc/init.d/networking stop
#/etc/init.d/networking start
clear
ifdown wlan0
sleep 1
echo ===========================================
ifup wlan0
sleep 1
echo ===========================================
ping www.google.com
=============================================================
Here is the config. file:
=============================================================
# /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=0
#ap_scan=1
#ap_scan=2
eapol_version=1
fast_reauth=1
network={
ssid="WLAN02"
# bssid=00:##:##:##:##:## Only in case of several routers with same ssid
scan_ssid=1
proto=WPA
# proto=WPA RSN
key_mgmt=WPA-PSK
# group=CCMP TKIP
# group=TKIP CCMP
group=TKIP
# pairwise=CCMP TKIP
# pairwise=TKIP CCMP
pairwise=TKIP
# psk="xxxxxxxx" (encrypted psk made with: # wpa_passphrase WLAN02 xxxxxxxx )
psk=85f758905305424d98a5b534f5fb14580f552ba12f0afd5ad1c2879177d17f1d
=============================================================
And I launch it using:
wpa_supplicant -B -W -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext -iwlan0 -dd
Last time I tried it, the results in several wpa_cli options was: FAIL
wpa_cli list_networks
wpa_cli scan
wpa_cli scan_results
wpa_cli status
ERROR: ( Selected interface 'wlan0'
wpa_state=SCANNING )
_______________________________________________ HostAP mailing list HostAP <at> lists.shmoo.com http://lists.shmoo.com/mailman/listinfo/hostap
RSS Feed