From owner-freebsd-questions@FreeBSD.ORG Tue Mar 11 08:08:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08BE41065684 for ; Tue, 11 Mar 2008 08:08:42 +0000 (UTC) (envelope-from Benjamin.Close@clearchain.com) Received: from ipmail04.adl2.internode.on.net (ipmail04.adl2.internode.on.net [203.16.214.57]) by mx1.freebsd.org (Postfix) with ESMTP id 0CF808FC1D for ; Tue, 11 Mar 2008 08:08:40 +0000 (UTC) (envelope-from Benjamin.Close@clearchain.com) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAIfW1Ud5LUIl/2dsb2JhbACBWKlR X-IronPort-AV: E=Sophos;i="4.25,479,1199626200"; d="scan'208";a="71027992" Received: from ppp121-45-66-37.lns10.adl6.internode.on.net (HELO mail.clearchain.com) ([121.45.66.37]) by ipmail04.adl2.internode.on.net with ESMTP; 11 Mar 2008 18:23:09 +1030 Received: from [192.168.155.236] (taurus.internal.clearchain.com [192.168.155.236]) (authenticated bits=0) by mail.clearchain.com (8.14.2/8.14.2) with ESMTP id m2B7qsuR016049 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Mar 2008 18:22:55 +1030 (CST) (envelope-from Benjamin.Close@clearchain.com) Message-ID: <47D63A65.8010507@clearchain.com> Date: Tue, 11 Mar 2008 18:23:09 +1030 From: Benjamin Close User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Mel References: <47C078EC.4020907@student.utwente.nl> <47C08AA4.80009@student.utwente.nl> <47C19257.9050202@student.utwente.nl> <200802241730.13328.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <200802241730.13328.fbsd.questions@rachie.is-a-geek.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.92.1, clamav-milter version 0.92.1 on pegasus.clearchain.com X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mail.clearchain.com [192.168.154.1]); Tue, 11 Mar 2008 18:22:57 +1030 (CST) Cc: freebsd-questions@freebsd.org, "Alphons \"Fonz\" van Werven" , freebsd-mobile@freebsd.org Subject: Re: [Wireless] Can't connect to wlan X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2008 08:08:42 -0000 Mel, Do the recent patches by Andrew make a difference? http://people.freebsd.org/~thompsa/wpi_head.diff http://people.freebsd.org/~thompsa/wpi_releng7.diff Mel wrote: > Redirect -> freebsd-mobile, cc Ben > > Ref: > http://lists.freebsd.org/pipermail/freebsd-current/2007-November/080653.html > > On Sunday 24 February 2008 16:50:47 Alphons "Fonz" van Werven wrote: > >> Okay, so here goes: >> >> SYNOPSIS >> >> Wireless network gets detected, but has "no carrier". So I can't connect. >> >> PROMPT >> >> All prompts are indicated as $ to avoid confusion with #-comment lines, but >> in reality most things are done by root. >> >> THE NETWORK >> >> SSID: SpeedTouch1EC5E8 >> radio type: 11g >> security type: WPA2-PSK >> PSK: known >> Station: Thomson ST 780 WL Wireless modem >> Signal: present (Windows picks it up right away) and generally excellent >> >> THE COMPUTER >> >> Thoshiba Satellite P200 1A4 notebook >> Wireless card: Intel 3945ABG >> OS: FreeBSD 7.0-RC3 >> >> KERNEL >> >> The driver for the Intel 3945ABG card is wpi. >> As instructed by its manpage, my /boot/loader.conf reads: >> >> $ cat /boot/loader.conf >> if_wpi_load="YES" >> wlan_load="YES" >> wlan_amrr_load="YES" >> firmware_load="YES" >> wpifw_load="YES" >> wlan_xauth_load="YES" >> >> legal.intel_wpi.license_ack=1 >> $ >> >> Relevant dmesg greps: >> >> $ dmesg|grep wpi >> wpi0: mem 0xd8000000-0xd8000fff irq 17 at >> device 0.0 on pci4 >> wpi0: Ethernet address: 00:1b:77:b5:98:bd >> wpi0: [ITHREAD] >> wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps >> wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps >> wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps >> 24Mbps 36Mbps 48Mbps 54Mbps >> $ dmesg|grep wlan >> $ dmesg|grep firmware >> $ >> >> CONFIGURATION >> >> My /etc/wpa_supplicant.conf: >> > > As you can see in the aboved mentioned URL, wpi and wpa_supplicant don't play > nice. I had the same problem yesterday, setting wpi through ifconfig (WEP in > my case) and the card just works. > I also had the bluetooth message, but Fonz doesn't seem to have that. > > # ident /boot/kernel/if_wpi.ko > /boot/kernel/if_wpi.ko: > $FreeBSD: src/sys/dev/wpi/if_wpi.c,v 1.5.2.2 2008/02/02 06:49:57 sam Exp > $ > > My kernel is GENERIC with ULE scheduler rather then 4BSD. I want to > investigate more this week, with a debug kernel and/or wpi in debug mode. > Since RELENG_7 is probably thawed/frozen, is there patches from -current you > can backport to have tested? > > Leaving the rest of the email in tact so you have a full report. > > >> $ cat /etc/wpa_supplicant.conf >> #eapol_version=2 >> >> network={ >> ssid="SpeedTouch1EC5E8" >> psk="********" (the correct preshared key, that is) >> # bssid=00:90:d0:f3:e1:d2 >> mode=0 >> proto=WPA RSN >> # key_mgmt=WPA-PSK >> # pairwise=CCMP >> # group=CCMP >> scan_ssid=1 >> } >> $ >> >> STEPS >> >> $ wpa_supplicant -d -i wpi0 -c /etc/wpa_supplicant >> Initializing interface 'wpi0' 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' >> Priority group 0 >> id=0 ssid='SpeedTouch1EC5E8' >> Initializing interface (2) 'wpi0' >> 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 >> Own MAC address: 00:1b:77:b5:98:bd >> wpa_driver_bsd_set_wpa: enabled=1 >> wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1 >> 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 >> wpa_driver_bsd_set_drop_unencrypted: enabled=1 >> Setting scan request: 0 sec 100000 usec >> Added interface wpi0 >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> State: DISCONNECTED -> SCANNING >> Starting AP scan (specific SSID) >> Scan SSID - hexdump_ascii(len=16): >> 53 70 65 65 64 54 6f 75 63 68 31 45 43 35 45 38 SpeedTouch1EC5E8 >> Trying to get current scan results first without requesting a new scan to >> speed up initial association >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 0 sec 0 usec >> Starting AP scan (broadcast SSID) >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> Starting AP scan (specific SSID) >> Scan SSID - hexdump_ascii(len=16): >> 53 70 65 65 64 54 6f 75 63 68 31 45 43 35 45 38 SpeedTouch1EC5E8 >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> Starting AP scan (broadcast SSID) >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> Starting AP scan (specific SSID) >> Scan SSID - hexdump_ascii(len=16): >> 53 70 65 65 64 54 6f 75 63 68 31 45 43 35 45 38 SpeedTouch1EC5E8 >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> Starting AP scan (broadcast SSID) >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> Starting AP scan (specific SSID) >> Scan SSID - hexdump_ascii(len=16): >> 53 70 65 65 64 54 6f 75 63 68 31 45 43 35 45 38 SpeedTouch1EC5E8 >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> Starting AP scan (broadcast SSID) >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> Starting AP scan (specific SSID) >> Scan SSID - hexdump_ascii(len=16): >> 53 70 65 65 64 54 6f 75 63 68 31 45 43 35 45 38 SpeedTouch1EC5E8 >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> Starting AP scan (broadcast SSID) >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> Starting AP scan (specific SSID) >> Scan SSID - hexdump_ascii(len=16): >> 53 70 65 65 64 54 6f 75 63 68 31 45 43 35 45 38 SpeedTouch1EC5E8 >> Received 0 bytes of scan results (0 BSSes) >> Scan results: 0 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> Try to find non-WPA AP >> No suitable AP found. >> Setting scan request: 5 sec 0 usec >> Starting AP scan (broadcast SSID) >> Received 0 bytes of scan results (1 BSSes) >> Scan results: 1 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> 0: 00:90:d0:f3:e1:d2 ssid='SpeedTouch1EC5E8' wpa_ie_len=30 rsn_ie_len=26 >> caps=0x11 >> selected based on RSN IE >> selected WPA AP 00:90:d0:f3:e1:d2 ssid='SpeedTouch1EC5E8' >> Try to find non-WPA AP >> Trying to associate with 00:90:d0:f3:e1:d2 (SSID='SpeedTouch1EC5E8' >> freq=2437 MHz) >> Cancelling scan request >> WPA: clearing own WPA/RSN IE >> Automatic auth_alg selection: 0x1 >> wpa_driver_bsd_set_auth_alg alg 0x1 authmode 1 >> 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 >> wpa_driver_bsd_set_drop_unencrypted: enabled=1 >> State: SCANNING -> ASSOCIATING >> wpa_driver_bsd_associate: ssid 'SpeedTouch1EC5E8' wpa ie len 22 pairwise 3 >> group 2 key mgmt 1 >> wpa_driver_bsd_associate: set PRIVACY 1 >> 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 >> Authentication with 00:00:00:00:00:00 timed out. >> Added BSSID 00:90:d0:f3:e1:d2 into blacklist >> No keys have been configured - skip key clearing >> State: ASSOCIATING -> DISCONNECTED >> EAPOL: External notification - portEnabled=0 >> EAPOL: External notification - portValid=0 >> EAPOL: External notification - EAP success=0 >> Setting scan request: 0 sec 0 usec >> State: DISCONNECTED -> SCANNING >> Starting AP scan (specific SSID) >> Scan SSID - hexdump_ascii(len=16): >> 53 70 65 65 64 54 6f 75 63 68 31 45 43 35 45 38 SpeedTouch1EC5E8 >> Received 0 bytes of scan results (1 BSSes) >> Scan results: 1 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> 0: 00:90:d0:f3:e1:d2 ssid='SpeedTouch1EC5E8' wpa_ie_len=30 rsn_ie_len=26 >> caps=0x11 >> selected based on RSN IE >> selected WPA AP 00:90:d0:f3:e1:d2 ssid='SpeedTouch1EC5E8' >> Try to find non-WPA AP >> Trying to associate with 00:90:d0:f3:e1:d2 (SSID='SpeedTouch1EC5E8' >> freq=2437 MHz) >> Cancelling scan request >> WPA: clearing own WPA/RSN IE >> Automatic auth_alg selection: 0x1 >> wpa_driver_bsd_set_auth_alg alg 0x1 authmode 1 >> 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 >> wpa_driver_bsd_set_drop_unencrypted: enabled=1 >> State: SCANNING -> ASSOCIATING >> wpa_driver_bsd_associate: ssid 'SpeedTouch1EC5E8' wpa ie len 22 pairwise 3 >> group 2 key mgmt 1 >> wpa_driver_bsd_associate: set PRIVACY 1 >> 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 >> Authentication with 00:00:00:00:00:00 timed out. >> BSSID 00:90:d0:f3:e1:d2 blacklist count incremented to 2 >> No keys have been configured - skip key clearing >> State: ASSOCIATING -> DISCONNECTED >> EAPOL: External notification - portEnabled=0 >> EAPOL: External notification - portValid=0 >> EAPOL: External notification - EAP success=0 >> Setting scan request: 0 sec 0 usec >> State: DISCONNECTED -> SCANNING >> Starting AP scan (broadcast SSID) >> Received 0 bytes of scan results (1 BSSes) >> Scan results: 1 >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> 0: 00:90:d0:f3:e1:d2 ssid='SpeedTouch1EC5E8' wpa_ie_len=30 rsn_ie_len=26 >> caps=0x11 >> skip - blacklisted >> Try to find non-WPA AP >> 0: 00:90:d0:f3:e1:d2 ssid='SpeedTouch1EC5E8' wpa_ie_len=30 rsn_ie_len=26 >> caps=0x11 >> skip - blacklisted >> No APs found - clear blacklist and try again >> Removed BSSID 00:90:d0:f3:e1:d2 from blacklist (clear) >> Selecting BSS from priority group 0 >> Try to find WPA-enabled AP >> 0: 00:90:d0:f3:e1:d2 ssid='SpeedTouch1EC5E8' wpa_ie_len=30 rsn_ie_len=26 >> caps=0x11 >> selected based on RSN IE >> selected WPA AP 00:90:d0:f3:e1:d2 ssid='SpeedTouch1EC5E8' >> Try to find non-WPA AP >> Trying to associate with 00:90:d0:f3:e1:d2 (SSID='SpeedTouch1EC5E8' >> freq=2437 MHz) >> Cancelling scan request >> WPA: clearing own WPA/RSN IE >> Automatic auth_alg selection: 0x1 >> wpa_driver_bsd_set_auth_alg alg 0x1 authmode 1 >> 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 >> wpa_driver_bsd_set_drop_unencrypted: enabled=1 >> State: SCANNING -> ASSOCIATING >> wpa_driver_bsd_associate: ssid 'SpeedTouch1EC5E8' wpa ie len 22 pairwise 3 >> group 2 key mgmt 1 >> wpa_driver_bsd_associate: set PRIVACY 1 >> 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 >> >> (after which it keeps repeating the above story until I stop it) >> >> CTRL-EVENT-TERMINATING - signal 2 received >> Removing interface wpi0 >> State: ASSOCIATING -> DISCONNECTED >> No keys have been configured - skip key clearing >> EAPOL: External notification - portEnabled=0 >> EAPOL: External notification - portValid=0 >> wpa_driver_bsd_set_wpa: enabled=0 >> wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=0 >> wpa_driver_bsd_set_drop_unencrypted: enabled=0 >> wpa_driver_bsd_set_countermeasures: enabled=0 >> No keys have been configured - skip key clearing >> Cancelling scan request >> Cancelling authentication timeout >> wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=1 >> $ >> >> After this: >> >> $ ifcondig wpi0 >> wpi0: flags=8843 metric 0 mtu 1500 >> ether 00:1b:77:b5:98:bd >> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g (DS/1Mbps) >> status: no carrier >> ssid SpeedTouch1EC5E8 channel 6 (2437 Mhz 11g) >> authmode WPA2/802.11i privacy ON deftxkey UNDEF txpower 50 bmiss 7 >> scanvalid 60 protmode CTS roaming MANUAL >> $ >> >> As you can see, there's still no carrier, so >> >> $ dhclient wpi0 >> wpi0: no link .............. giving up >> $ >> >> If there's anything else you need to know, just holler. >> >> Thanks in advance, >> >> Alphons >> > > > >