#743 closed System Defect (3rdpartybug)

Wireless WPA authentication bug (wpa_supplicant) - can scan, can't connect.

Reported by: SHADen Owned by:
Priority: major Milestone:
Component: System Configuration Version: 9.1-RELEASE
Keywords: wpa, wireless Cc: trac-bugs@…

Description

I'm using a laptop Asus U56E, everything works just fine except wireless.

The problem is that I can detect my (and several others) wireless networks, but wpa_supplicant won't connect to it.

The wireless card is "intel centrino wireless-n + wimax 6150", wich should be supported by iwn driver.
(just to be clear, I can't connect with the graphical wireless manager either, even if I delete /etc/wpa_supplicant.conf first).

[macmahon@pcbsd-2421] /% uname -a
FreeBSD pcbsd-2421 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
[macmahon@pcbsd-2421] /% sudo ifconfig wlan0 up scan
SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
Fermi           20:aa:4b:bf:2c:2c    1   54M -60:-95  100 EP   RSN 
.... goes on with orthers

rc.conf :

[macmahon@pcbsd-2421] /% cat /etc/rc.conf |grep if
kld_list="libiconv libmchain msdosfs_iconv if_bwn if_bwi bwi_v3_ucode bwn_v4_ucode runfw ng cuse4bsd sem ntfs ntfs_iconv udf udf_iconv ext2fs mmc mmcsd scd geom_uzip pefs xfs reiserfs smbfs fdescfs linsysfs iwn4965fw iwn1000fw iwn5000fw iwn5150fw iwn6000fw iwn6000g2afw iwn6000g2bfw iwn6050fw acpi_video"
ifconfig_alc0="DHCP"
ifconfig_alc0_ipv6="inet6 accept_rtadv"
ifconfig_wlan0="WPA DHCP"

ifconfig output :

[macmahon@pcbsd-2421] /% ifconfig
iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 40:25:c2:cf:ac:f4
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: associated
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=c3198<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
        ether 10:bf:48:04:39:65
        inet6 fe80::12bf:48ff:fe04:3965%alc0 prefixlen 64 scopeid 0x4 
        inet 192.168.1.104 netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 
        inet 127.0.0.1 netmask 0xff000000 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 40:25:c2:cf:ac:f4
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: no carrier
        ssid Fermi channel 1 (2412 MHz 11g)
        country US authmode WPA2/802.11i privacy ON deftxkey UNDEF txpower 15
        bmiss 10 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250
        roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL

Outpu of wpa_supplitcant
wpa_supplicant.conf

[macmahon@pcbsd-2421] /% cat /etc/wpa_supplicant.conf 
ctrl_interface=/var/run/wpa_supplicant

network={
 ssid="Fermi"
 psk="myspassword"
        }
[macmahon@pcbsd-2421] /% sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Password:
Trying to associate with 20:aa:4b:bf:2c:2c (SSID='Fermi' freq=2412 MHz)
Authentication with 20:aa:4b:bf:2c:2c timed out.
Trying to associate with 20:aa:4b:bf:2c:2c (SSID='Fermi' freq=2412 MHz)
Authentication with 20:aa:4b:bf:2c:2c timed out.
^CCTRL-EVENT-TERMINATING - signal 2 received
ELOOP: remaining socket: sock=4 eloop_data=0x80140f300 user_data=0x80141c080 handler=0x4280e0
[macmahon@pcbsd-2421] /% 
[macmahon@pcbsd-2421] /% sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -d
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Priority group 0
   id=0 ssid='Fermi'
Own MAC address: 40:25:c2:cf:ac:f4
wpa_driver_bsd_del_key: keyidx=0
wpa_driver_bsd_del_key: keyidx=1
wpa_driver_bsd_del_key: keyidx=2
wpa_driver_bsd_del_key: keyidx=3
wpa_driver_bsd_set_countermeasures: enabled=0
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
Added interface wlan0
State: DISCONNECTED -> SCANNING
Starting AP scan for wildcard SSID
Received 764 bytes of scan results (3 BSSes)
BSS: Start scan result update 1
BSS: Add new id 0 BSSID 20:aa:4b:bf:2c:2c SSID 'Fermi'
BSS: Add new id 1 BSSID 2c:e4:12:98:da:23 SSID 'BELL818'
BSS: Add new id 2 BSSID 58:6d:8f:19:4d:d8 SSID 'Fibe-Siena'
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 20:aa:4b:bf:2c:2c ssid='Fermi' wpa_ie_len=28 rsn_ie_len=24 caps=0x11
   selected based on RSN IE
   selected WPA AP 20:aa:4b:bf:2c:2c ssid='Fermi'
Trying to associate with 20:aa:4b:bf:2c:2c (SSID='Fermi' 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 8 pairwise 24 key_mgmt 2 proto 2
WPA: set AP WPA IE - hexdump(len=30): dd 1c 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 04 00 50 f2 02 01 00 00 50 f2 02 0c 00
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 02 02 00 00 0f ac 04 00 0f ac 02 01 00 00 0f ac 02 0c 00
WPA: using GTK TKIP
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 02 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
wpa_driver_bsd_associate: ssid 'Fermi' wpa ie len 22 pairwise 3 group 2 key mgmt 1
wpa_driver_bsd_set_drop_unencrypted: enabled=1
wpa_driver_bsd_set_auth_alg alg 0x1 authmode 1
wpa_driver_bsd_associate: set PRIVACY 1
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP fail=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portControl=Auto
EAPOL: Supplicant port status: Unauthorized
EAPOL: disable timer tick
EAPOL: Supplicant port status: Unauthorized
Authentication with 20:aa:4b:bf:2c:2c timed out.
Added BSSID 20:aa:4b:bf:2c:2c into blacklist
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan for wildcard SSID
Received 2788 bytes of scan results (11 BSSes)
BSS: Start scan result update 2
BSS: Add new id 3 BSSID 4c:17:eb:da:29:5b SSID 'Fibe-Siena'
BSS: Add new id 4 BSSID d8:6c:e9:17:98:91 SSID 'BELL304'
BSS: Add new id 5 BSSID 00:23:54:b6:ab:78 SSID 'JP et Vene'
BSS: Add new id 6 BSSID f0:b4:79:05:16:9b SSID 'Dreylo'
BSS: Add new id 7 BSSID 1c:7e:e5:f8:13:88 SSID 'VIDEOTRON5942'
BSS: Add new id 8 BSSID 00:1e:e5:60:5f:9f SSID 'lynksys'
BSS: Add new id 9 BSSID 2c:e4:12:7e:a8:67 SSID 'BELL675'
BSS: Add new id 10 BSSID 00:25:86:ce:5b:e0 SSID 'angeldamnation'
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 20:aa:4b:bf:2c:2c ssid='Fermi' wpa_ie_len=28 rsn_ie_len=24 caps=0x11
   selected based on RSN IE
   selected WPA AP 20:aa:4b:bf:2c:2c ssid='Fermi'
Trying to associate with 20:aa:4b:bf:2c:2c (SSID='Fermi' 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 8 pairwise 24 key_mgmt 2 proto 2
WPA: set AP WPA IE - hexdump(len=30): dd 1c 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 04 00 50 f2 02 01 00 00 50 f2 02 0c 00
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 02 02 00 00 0f ac 04 00 0f ac 02 01 00 00 0f ac 02 0c 00
WPA: using GTK TKIP
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 02 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
wpa_driver_bsd_associate: ssid 'Fermi' wpa ie len 22 pairwise 3 group 2 key mgmt 1
wpa_driver_bsd_set_drop_unencrypted: enabled=1
wpa_driver_bsd_set_auth_alg alg 0x1 authmode 1
wpa_driver_bsd_associate: set PRIVACY 1
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP fail=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portControl=Auto
EAPOL: Supplicant port status: Unauthorized
^CCTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
wpa_driver_bsd_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
Removed BSSID 20:aa:4b:bf:2c:2c from blacklist (clear)
BSS: Remove id 0 BSSID 20:aa:4b:bf:2c:2c SSID 'Fermi'
BSS: Remove id 1 BSSID 2c:e4:12:98:da:23 SSID 'BELL818'
BSS: Remove id 3 BSSID 4c:17:eb:da:29:5b SSID 'Fibe-Siena'
BSS: Remove id 4 BSSID d8:6c:e9:17:98:91 SSID 'BELL304'
BSS: Remove id 5 BSSID 00:23:54:b6:ab:78 SSID 'JP et Vene'
BSS: Remove id 6 BSSID f0:b4:79:05:16:9b SSID 'Dreylo'
BSS: Remove id 7 BSSID 1c:7e:e5:f8:13:88 SSID 'VIDEOTRON5942'
BSS: Remove id 2 BSSID 58:6d:8f:19:4d:d8 SSID 'Fibe-Siena'
BSS: Remove id 8 BSSID 00:1e:e5:60:5f:9f SSID 'lynksys'
BSS: Remove id 9 BSSID 2c:e4:12:7e:a8:67 SSID 'BELL675'
BSS: Remove id 10 BSSID 00:25:86:ce:5b:e0 SSID 'angeldamnation'
Cancelling scan request
Cancelling authentication timeout
wpa_driver_bsd_set_wpa_internal: wpa=2 privacy=1
ELOOP: remaining socket: sock=4 eloop_data=0x80140f300 user_data=0x801460080 handler=0x4280e0

[macmahon@pcbsd-2421] /% sudo ifconfig wlan0 destroy
[macmahon@pcbsd-2421] /% sudo service netif start
Starting wpa_supplicant.
Starting Network: lo0 iwn0 alc0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 
        inet 127.0.0.1 netmask 0xff000000 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 40:25:c2:cf:ac:f4
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: associated
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=c3198<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
        ether 10:bf:48:04:39:65
        inet6 fe80::12bf:48ff:fe04:3965%alc0 prefixlen 64 scopeid 0x4 
        inet 192.168.1.104 netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
[macmahon@pcbsd-2421] /% ifconfig
iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 40:25:c2:cf:ac:f4
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: associated
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=c3198<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
        ether 10:bf:48:04:39:65
        inet6 fe80::12bf:48ff:fe04:3965%alc0 prefixlen 64 scopeid 0x4 
        inet 192.168.1.104 netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 
        inet 127.0.0.1 netmask 0xff000000 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 40:25:c2:cf:ac:f4
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        ssid Fermi channel 1 (2412 MHz 11g)
        country US authmode WPA2/802.11i privacy ON deftxkey UNDEF txpower 15
        bmiss 10 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250
        roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL
[macmahon@pcbsd-2421] /% 

Change History (9)

comment:1 Changed 15 months ago by kris

Odd, maybe a bug in the driver / wpa_supp?

Would you be willing to test it on our new -STABLE ISO's? Its based upon FreeBSD 9.2-BETA2, and may have fixes relating to this.

http://iso.cdn.pcbsd.org/9-STABLE/amd64/

comment:2 Changed 15 months ago by SHADen

I'm downloading it right now. Is PCBSD9-STABLE-x64-USBFULL-latest.img.bz2 the right one?

comment:3 Changed 13 months ago by joshms

  • Resolution set to deferred
  • Status changed from new to closed

Closed due to inactivity. Please reopen if you are still experiencing issues with your wireless card. According to FreeBSD's compatibility information your card should be supported, so hopefully it's something other than a driver related issue.

Thanks!

comment:4 Changed 13 months ago by SHADen

I've tried with PCBSD-9.2 release - still same problem
I've also tried FREEBSD-RC4, same problem.

I feel like it is driver related.

comment:5 Changed 13 months ago by SHADen

  • Resolution deferred deleted
  • Status changed from closed to reopened

comment:6 Changed 13 months ago by joshms

Can you browse to the wpa_supplicant file and open it in edit? Please paste what it says here, and of course blur out your passcode, but i'm sure that gos without saying :). I posted mine as an example. You may have posted it earlier, but it is really mashed together and I don't see it. Thanks!

ctrl_interface=/var/run/wpa_supplicant

network={

ssid="NETGEARROUTER"
priority=145
scan_ssid=1
psk="*"

}

comment:7 Changed 13 months ago by SHADen

[macmahon@pcbsd-2421] /% cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant

network={

ssid="Fermi"
psk="myspassword"

}

[macmahon@pcbsd-2421] /% sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Password:
Trying to associate with 20:aa:4b:bf:2c:2c (SSID='Fermi' freq=2412 MHz)
Authentication with 20:aa:4b:bf:2c:2c timed out.
Trying to associate with 20:aa:4b:bf:2c:2c (SSID='Fermi' freq=2412 MHz)
Authentication with 20:aa:4b:bf:2c:2c timed out.

comment:8 Changed 13 months ago by joshms

After further investigation it looks like your issue may be driver related. I found this bug report for the iwn(4) driver for your card. Looks like the firmware could be crashing preventing it from functioning properly.

https://wiki.freebsd.org/dev/iwn(4)

I wasn't able to find to find a solution. I suppose you could always try upgrading the firmware for your card, but it should already be pretty up to date.

comment:9 Changed 13 months ago by joshms

  • Resolution set to 3rdpartybug
  • Status changed from reopened to closed

Unfortunately you have a driver / firmware problem which we consider a 3rd party FreeBSD bug. If you report this to the FreeBSD guys they might be able to have a look at their driver.

http://www.freebsd.org/send-pr.html

Best Regards,

Josh

Note: See TracTickets for help on using tickets.