No WPA on Ubuntu feisty with precompiled hostap_pci

Dan Williams dcbw at redhat.com
Tue Aug 14 13:05:06 EDT 2007


On Tue, 2007-08-14 at 19:04 +0200, Malte Cornils wrote:
> Hello. 
> 
> I tried setting up WPA for a friend of mine via a remote debugging session. He 
> has a 
> 
> 00:09.0 Network controller: Intersil Corporation Prism 2.5 Wavelan chipset 
> (rev 01)
> 
> 0280: 1260:3873
> 
> built-in card.
> 
> wpa_supplicant does not want to associate:
> 
> --- snip ---
> root at hans-peter:/etc/wpa_supplicant# 
> wpa_supplicant -Dhostap -iwlan1 -c /etc/wpa_supplicant

Try using -Dwext.

Dan

> /manual.conf -d
> Initializing interface 'wlan1' conf '/etc/wpa_supplicant/manual.conf' 
> driver 'hostap' ctrl_
> interface 'N/A' bridge 'N/A'
> Configuration 
> file '/etc/wpa_supplicant/manual.conf' -> '/etc/wpa_supplicant/manual.conf'
> Reading configuration file '/etc/wpa_supplicant/manual.conf'
> ctrl_interface='/var/run/wpa_supplicant'
> ap_scan=1
> Priority group 0
>    id=0 ssid='Jannica'
> Initializing interface (2) 'wlan1'
> 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)=21 WE(source)=18 enc_capa=0xf
>   capabilities: key_mgmt 0xf enc 0xf
> WEXT: Operstate: linkmode=1, operstate=5
> Own MAC address: 00:02:8a:7a:e4:9c
> wpa_driver_hostap_set_wpa: enabled=1
> ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
> Driver does not support WPA.
> 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 wlan1
> RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
> Wireless event: cmd=0x8b06 len=8
> Ignore event for foreign ifindex 8
> RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
> RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
> RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
> RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
> State: DISCONNECTED -> SCANNING
> Starting AP scan (specific SSID)
> Scan SSID - hexdump_ascii(len=7):
>      4a 61 6e 6e 69 63 61                              Jannica
> Trying to get current scan results first without requesting a new scan to 
> speed up initial
> association
> Received 146 bytes of scan results (1 BSSes)
> Scan results: 1
> Selecting BSS from priority group 0
> 0: 00:13:49:fe:36:3a ssid='Jannica' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
>    skip - no WPA/RSN IE
> No suitable AP found.
> Setting scan request: 0 sec 0 usec
> Starting AP scan (broadcast SSID)
> Ignore event for foreign ifindex 8
> Scan timeout - try to get results
> Received 146 bytes of scan results (1 BSSes)
> Scan results: 1
> Selecting BSS from priority group 0
> 0: 00:13:49:fe:36:3a ssid='Jannica' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
>    skip - no WPA/RSN IE
> No suitable AP found.
> Setting scan request: 5 sec 0 usec
> Ignore event for foreign ifindex 8
> Starting AP scan (specific SSID)
> Scan SSID - hexdump_ascii(len=7):
>      4a 61 6e 6e 69 63 61                              Jannica
> Ignore event for foreign ifindex 8
> CTRL-EVENT-TERMINATING - signal 2 received
> 
> (I pressed Ctrl-C then...)
> --- snip ---
> 
> The 
> 
> ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
> Driver does not support WPA.
> 
> line makes me fear hostap does not provide correct WPA support on his card. In 
> the hostap FAQ, I tried to check whether I have a known-working card 
> firmware. This is part of dmesg:
> 
> ---snip---
> [ 7593.064000] hostap_pci: 0.4.4-kernel (Jouni Malinen <jkmaline at cc.hut.fi>)
> [ 7593.068000] ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [LNK3] -> GSI 10 
> (level, low) ->
>  IRQ 10
> [ 7593.068000] hostap_pci: Registered netdevice wifi0
> [ 7593.068000] wifi0: Original COR value: 0x0
> [ 7593.280000] prism2_hw_init: initialized in 200 ms
> [ 7593.280000] wifi0: NIC: id=0x8013 v1.0.0
> [ 7593.284000] wifi0: PRI: id=0x15 v1.1.0
> [ 7593.284000] wifi0: STA: id=0x1f v1.4.9
> [ 7593.284000] wifi0: defaulting to bogus WDS frame as a workaround for 
> firmware bug in Hos
> t AP mode WDS
> [ 7593.284000] wifi0: Intersil Prism2.5 PCI: mem=0xd000c000, irq=10
> [ 7593.288000] wifi0: registered netdevice wlan0
> [ 7593.356000] ADDRCONF(NETDEV_UP): wifi0: link is not ready
> [ 7593.356000] ADDRCONF(NETDEV_UP): wlan1: link is not ready
> [ 7683.652000] wifi0: LinkStatus=2 (Disconnected)
> [ 7683.652000] wifi0: LinkStatus: BSSID=44:44:44:44:44:44
> [ 7700.348000] wifi0: CMD=0x0121 => res=0x7f, resp0=0x0004
> [ 7700.348000] wifi0: hfa384x_set_rid: CMDCODE_ACCESS_WRITE failed (res=127, 
> rid=fc48, len=
> 2)
> [ 7700.348000] wifi0: LinkStatus=2 (Disconnected)
> [ 7700.348000] wifi0: LinkStatus: BSSID=44:44:44:44:44:44
> [ 7700.360000] wifi0: Preferred AP (SIOCSIWAP) is used only in Managed mode 
> when host_roami
> ng is enabled
> [ 7803.276000] ADDRCONF(NETDEV_UP): wifi0: link is not ready
> [ 7803.304000] wifi0: LinkStatus=2 (Disconnected)
> [ 7803.304000] wifi0: LinkStatus: BSSID=44:44:44:44:44:44
> [ 7821.648000] wifi0: CMD=0x0121 => res=0x7f, resp0=0x0004
> [ 7821.648000] wifi0: hfa384x_set_rid: CMDCODE_ACCESS_WRITE failed (res=127, 
> rid=fc48, len=
> 2)
> [ 7821.648000] wifi0: LinkStatus=2 (Disconnected)
> [ 7821.648000] wifi0: LinkStatus: BSSID=44:44:44:44:44:44
> [ 7821.660000] wifi0: Preferred AP (SIOCSIWAP) is used only in Managed mode 
> when host_roami
> ng is enabled
> [ 8045.732000] ADDRCONF(NETDEV_UP): wifi0: link is not ready
> [ 8045.760000] wifi0: LinkStatus=2 (Disconnected)
> [ 8045.760000] wifi0: LinkStatus: BSSID=44:44:44:44:44:44
> [ 8075.388000] wifi0: CMD=0x0121 => res=0x7f, resp0=0x0004
> [ 8075.388000] wifi0: hfa384x_set_rid: CMDCODE_ACCESS_WRITE failed (res=127, 
> rid=fc48, len=
> 2)
> [ 8075.388000] wifi0: LinkStatus=2 (Disconnected)
> --- snip ---
> 
> So, the line
> [ 7593.284000] wifi0: STA: id=0x1f v1.4.9
> shows my friend's card has acceptable firmware.
> 
> My command line for testing WPA:
> root at hans-peter:/etc/wpa_supplicant# 
> wpa_supplicant -Dhostap -iwlan1 -c /etc/wpa_supplicant
> /manual.conf -d
> 
> (does not work with -Dwext either)
> 
> and my manual.conf:
> # WPA-PSK/TKIP
> 
> ctrl_interface=/var/run/wpa_supplicant
> 
> ap_scan=1
> 
> network={
>         ssid="PRIVATE"
>         scan_ssid=1
>         key_mgmt=WPA-PSK
>         #proto=WPA
>         #pairwise=TKIP
>         #group=TKIP
>         #psk="PRIVATE"
>         psk=PRIVATE
> }
> 
> How can I get to the bottom of this? What are we doing wrong? Any pointers 
> would be much appreciated!
> 
> Yours,
> -Malte Cornils
> 
> PS: A few further log files are appended.
> 
> -- snip --
> root at hans-peter:/etc/network# iwlist scan
> lo        Interface doesn't support scanning.
> 
> eth0      Interface doesn't support scanning.
> 
> wifi0     No scan results
> wlan1     Scan completed :
>           Cell 01 - Address: 00:13:49:FE:36:3A
>                     ESSID:"Jannica"
>                     Mode:Master
>                     Frequency:2.412 GHz (Channel 1)
>                     Signal level=-62 dBm  Noise level=-100 dBm
>                     Encryption key:on
>                     Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
>                     Extra:bcn_int=100
>                     Extra:resp_rate=10
> 
> root at hans-peter:/etc/network# iwconfig
> lo        no wireless extensions.
> 
> eth0      no wireless extensions.
> 
> wifi0     IEEE 802.11b  ESSID:"test"  Nickname:""
>           Mode:Managed  Frequency:2.432 GHz  Access Point: None
>           Bit Rate:2 Mb/s   Sensitivity=1/3
>           Retry limit:8   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
> 
> wlan1     IEEE 802.11b  ESSID:"test"  Nickname:""
>           Mode:Managed  Frequency:2.432 GHz  Access Point: None
>           Bit Rate:2 Mb/s   Sensitivity=1/3
>           Retry limit:8   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
>           Link Quality=0/70  Signal level=-73 dBm  Noise level=-73 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:1  Invalid misc:5   Missed beacon:0
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap




More information about the HostAP mailing list