WPA - AP association Issue

Mr. Maloomnahi maloomnahi at indiatimes.com
Fri Oct 26 01:50:05 EDT 2007


Hi Bryan,

Thanks for the debug options and suggestions. 

I have done that change to events.c and tested the association again. The results are the same and the scanned number of APs are also same. [Dump is below]

The firmware on the AR5212 card uses the commands on the prompt to set the private variables and assoaicte to the AP MAC address specified in the command. 

Following are the settings I had performed on the firmware for STA on NetGear WG311T card
================
iwconfig ath0 essid "SEMCO_AP"
iwconfig ath0 key XXXX open
iwconfig ath0 frag 512 rts 40 rate 36M auto
iwpriv ath0 wpa 1 keymgtalgs 2 hostroaming 1 dropunencrypted 0 authmode 4
ifconfig ath0 192.168.1.152 up
iwconfig ath0 ap 00:14:78:8F:5E:49 -> 
This associates the device to the AP and shows the listing as associated to so and so MAC Addr
================

The dump (after the code change using WPA Src Code) from the screen is as follows:
=================
[root at localhost wpa_supplicant-0.5.8]# iwconfig ath0 essid "SEMCO_AP"
[root at localhost wpa_supplicant-0.5.8]# ifconfig ath0 192.168.1.152 up
[root at localhost wpa_supplicant-0.5.8]# iwconfig ath0 key DEAD-BEEF-AA open
[root at localhost wpa_supplicant-0.5.8]# wpa_supplicant -Dmadwifi -iath0 -c EAP_TTLS_TKIP.conf -dddddd
Initializing interface 'ath0' conf 'EAP_TTLS_TKIP.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'N/A'
Initializing interface (2) 'ath0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=20 WE(source)=13 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:14:78:8f:73:1f
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface ath0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 520 bytes of scan results (2 BSSes)
Scan results: 2
No suitable AP found.
Setting scan request: 0 sec 0 usec
No enabled networks - do not scan
State: SCANNING -> INACTIVE
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 520 bytes of scan results (2 BSSes)
Scan results: 2
No suitable AP found.
Setting scan request: 5 sec 0 usec
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:14:78:8f:5e:49
State: INACTIVE -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=00:14:78:8f:5e:49
No keys have been configured - skip key clearing
No network configuration found for the current AP
wpa_driver_madwifi_disassociate
No keys have been configured - skip key clearing
State: ASSOCIATED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Added BSSID 00:00:00:00:00:00 into blacklist
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_del_key: keyidx=0
State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
No enabled networks - do not scan
State: DISCONNECTED -> INACTIVE
=================
Looking forward to your support on the problem. I am also scanning through other changes / settings, but none has helped yet.

Thanks
PPN

--
My life has changed. What about yours?
Log on to the new Indiatimes Mail and Live out of the Inbox!


More information about the HostAP mailing list