HostAP and WPA2 with Intersil Prism card

Alex Pounds alex
Sat Dec 16 05:33:52 PST 2006


On Fri, Dec 15, 2006 at 10:54:22AM -0500, Dave Neuer wrote:
> On 12/14/06, Alex Pounds <alex at alexpounds.com> wrote:
> > prism2_hw_init: initialized in 192 ms
> > wifi0: hfa384x_cmd: entry still in list? (entry=df211b20, type=0, res=0)
> > wifi0: hfa384x_cmd: command was not completed (res=0, entry=df211b20, type=0, cmd=0x0021, param0=0xfd0b, EVSTAT=8010 INTEN=0010)
> > wifi0: interrupt delivery does not seem to work
> > wifi0: hfa384x_get_rid: CMDCODE_ACCESS failed (res=-110, rid=fd0b, len=8)
> > Could not get RID for component NIC
> 
> First off, I'd be lying if I said I knew what was going on here.
> However, it's clear enough from  this snippet of log file that the
> device is not responding to some commands the way the driver expects
> it to.

Funnily enough, when I started the laptop up today this problem
disappeared. My best guess is the motherboard or wifi card got confused a
bit through a combination of reflashing the chipset and a warm reboot.
Starting it up from scratch made everything come up OK. 

After some messing around all night (with some help from the lovely
#debian folks on Freenode) I'm pretty sure I've reached the same place as
you have - I can associate to the access point, but it then flip-flops
between associated and unassociated. You haven't found a solution to this
yet, have you? 

Some debugging output is included below.

$ wpa_supplicant -D hostap -i eth0 -c /etc/wpa_supplicant.conf
Trying to associate with AA:BB:CC:DD:EE:c8  (SSID='ourwifi' freq=2412 MHz)
Associated with AA:BB:CC:DD:EE:c8
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with AA:BB:CC:DD:EE:c8  (SSID='ourwifi' freq=2412 MHz)
Associated with AA:BB:CC:DD:EE:c8
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with AA:BB:CC:DD:EE:c8  (SSID='ourwifi' freq=2412 MHz)
Associated with AA:BB:CC:DD:EE:c8
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys


$ wpa_supplicant -dd -D hostap -i eth0 -c /etc/wpa_supplicant.conf
Initializing interface 'eth0' conf '/etc/wpa_supplicant.conf' driver 'hostap' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Line: 1 - start of a new network block
ssid - hexdump_ascii(len=7):
     6f 75 72 77 69 66 69                              ourwifi         
PSK - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='ourwifi'
Initializing interface (2) 'eth0'
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)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:20:e0:4d:17:38
wpa_driver_hostap_set_wpa: enabled=1
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_countermeasures: enabled=0
wpa_driver_hostap_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface eth0
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 93 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: AA:BB:CC:DD:EE:c8 ssid='ourwifi' wpa_ie_len=0 rsn_ie_len=22 caps=0x11
   selected based on RSN IE
Trying to associate with AA:BB:CC:DD:EE:c8 (SSID='ourwifi' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
RSN: using IEEE 802.11i/D9.0
WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: using GTK CCMP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
No keys have been configured - skip key clearing
wpa_driver_hostap_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_hostap_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RSN: Ignored PMKID candidate without preauth flag
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=16
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: AA:BB:CC:DD:EE:c8
State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=AA:BB:CC:DD:EE:c8
No keys have been configured - skip key clearing
Associated with AA:BB:CC:DD:EE:c8
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth0' added
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Setting scan request: 0 sec 100000 usec
Added BSSID AA:BB:CC:DD:EE:c8 into blacklist
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
State: ASSOCIATED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth0' added
State: DISCONNECTED -> SCANNING


There is more, but it's all much of a muchness from that point on. So,
what's up with all this? 

Thank you, 

-- 
Alex Pounds (Creature)                  .~.         http://www.alexpounds.com/
                                        /V\        http://www.ethicsgirls.com/
                                       // \\
"Variables won't; Constants aren't"   /(   )\
                                       ^`~'^




More information about the Hostap mailing list