From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 21 22:36:47 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3014616A405 for ; Thu, 21 Feb 2008 22:36:47 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id CBF6313C45B for ; Thu, 21 Feb 2008 22:36:46 +0000 (UTC) (envelope-from sam@errno.com) Received: from Macintosh-2.local ([10.0.0.196]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m1LMFlrQ067957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Feb 2008 14:15:48 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <47BDF813.1010604@errno.com> Date: Thu, 21 Feb 2008 14:15:47 -0800 From: Sam Leffler Organization: Errno Consulting User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: "Michael W. Lucas" References: <20080221162301.GA71695@bewilderbeast.blackhelicopters.org> In-Reply-To: <20080221162301.GA71695@bewilderbeast.blackhelicopters.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: hackers@freebsd.org Subject: Re: ath0 will not associate X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2008 22:36:47 -0000 Michael W. Lucas wrote: > Hi, > > Runing -current i386 as of February 19. > > Tried to use an ath wireless on my laptop, it wouldn't associate using: > > # ifconfig ath0 ssid GoAway wepkey 0xdeadbeef1234567890deadbeef wepmode on > > Set "wlandebug scan+auth+assoc", got the following in > /var/log/messages. (I've trimmed to 100 lines, the remainder is more > of the same. > > Any suggestions, folks? Proper next steps to debug? > > Thanks, > ==ml > > Feb 21 09:45:57 stretchlimo kernel: ath0: mem 0x88000000-0x8800ffff irq 17 at device 0.0 on cardbus0 > Feb 21 09:45:57 stretchlimo kernel: ath0: [ITHREAD] > Feb 21 09:45:57 stretchlimo kernel: ath0: using obsoleted if_watchdog interface > Feb 21 09:45:57 stretchlimo kernel: ath0: Ethernet address: 00:80:c8:1f:8c:43 > Feb 21 09:45:57 stretchlimo kernel: ath0: mac 5.6 phy 4.1 radio 0.0 > Feb 21 09:47:34 stretchlimo kernel: ath0: ath_chan_set: unable to reset channel 40 (5200 Mhz, flags 0x140 hal flags 0x140) Not good. You don't indicate what channel the ap is using but presumably it's not 40. I see no other similar msgs so presumably this was a one time occurence? Did you eject the card mid-scan? > Feb 21 09:47:34 stretchlimo kernel: ath0: detached > Feb 21 09:47:38 stretchlimo kernel: ath0: mem 0x88000000-0x8800ffff irq 17 at device 0.0 on cardbus0 > Feb 21 09:47:38 stretchlimo kernel: ath0: [ITHREAD] > Feb 21 09:47:38 stretchlimo kernel: ath0: using obsoleted if_watchdog interface > Feb 21 09:47:38 stretchlimo kernel: ath0: Ethernet address: 00:80:c8:1f:8c:43 > Feb 21 09:47:38 stretchlimo kernel: ath0: mac 5.6 phy 4.1 radio 0.0 > Feb 21 09:47:44 stretchlimo kernel: ath0: detached > Feb 21 11:03:36 stretchlimo kernel: ath0: mem 0x88000000-0x8800ffff irq 17 at device 0.0 on cardbus0 > Feb 21 11:03:36 stretchlimo kernel: ath0: [ITHREAD] > Feb 21 11:03:36 stretchlimo kernel: ath0: using obsoleted if_watchdog interface > Feb 21 11:03:36 stretchlimo kernel: ath0: Ethernet address: 00:80:c8:1f:8c:43 > Feb 21 11:03:36 stretchlimo kernel: ath0: mac 5.6 phy 4.1 radio 0.0 > Feb 21 11:09:40 stretchlimo kernel: ath0: ieee80211_check_scan: active scan, duration 2147483647, desired mode auto, flush > Feb 21 11:09:40 stretchlimo kernel: ath0: ieee80211_start_scan: active scan, duration 2147483647, desired mode auto, flush > Feb 21 11:09:40 stretchlimo kernel: ath0: scan set 1g, 6g, 11g, 7g, 52a, 56a, 60a, 64a, 36a, 40a, 44a, 48a, 2g, 3g, 4g, 5g, 8g, 9g, 10g, 149a, 153a, 157a, 161a, 165a, 50S, 58S, 152S, 160S dwell min 20 max 200 > Feb 21 11:09:40 stretchlimo kernel: ath0: scan_next: chan 1b -> 1g [active, dwell min 20 max 200] > Feb 21 11:09:40 stretchlimo kernel: ath0: scan_next: chan 1g -> 6g [active, dwell min 20 max 200] > Feb 21 11:09:40 stretchlimo kernel: ath0: scan_next: chan 6g -> 11g [active, dwell min 20 max 200] > Feb 21 11:09:41 stretchlimo kernel: ath0: scan_next: chan 11g -> 7g [active, dwell min 20 max 200] > Feb 21 11:09:41 stretchlimo kernel: ath0: scan_next: chan 7g -> 52a [active, dwell min 20 max 200] > Feb 21 11:09:41 stretchlimo kernel: ath0: scan_next: chan 52a -> 56a [active, dwell min 20 max 200] > Feb 21 11:09:41 stretchlimo kernel: ath0: scan_next: chan 56a -> 60a [active, dwell min 20 max 200] > Feb 21 11:09:41 stretchlimo kernel: ath0: scan_next: chan 60a -> 64a [active, dwell min 20 max 200] > Feb 21 11:09:42 stretchlimo kernel: ath0: scan_next: chan 64a -> 36a [active, dwell min 20 max 200] > Feb 21 11:09:42 stretchlimo kernel: ath0: scan_next: chan 36a -> 40a [active, dwell min 20 max 200] > Feb 21 11:09:42 stretchlimo kernel: ath0: scan_next: chan 40a -> 44a [active, dwell min 20 max 200] > Feb 21 11:09:42 stretchlimo kernel: ath0: scan_next: chan 44a -> 48a [active, dwell min 20 max 200] > Feb 21 11:09:42 stretchlimo kernel: ath0: scan_next: chan 48a -> 2g [active, dwell min 20 max 200] > Feb 21 11:09:43 stretchlimo kernel: ath0: scan_next: chan 2g -> 3g [active, dwell min 20 max 200] > Feb 21 11:09:43 stretchlimo kernel: ath0: scan_next: chan 3g -> 4g [active, dwell min 20 max 200] > Feb 21 11:09:43 stretchlimo kernel: ath0: scan_next: chan 4g -> 5g [active, dwell min 20 max 200] > Feb 21 11:09:43 stretchlimo kernel: ath0: scan_next: chan 5g -> 8g [active, dwell min 20 max 200] > Feb 21 11:09:43 stretchlimo kernel: ath0: scan_next: chan 8g -> 9g [active, dwell min 20 max 200] > Feb 21 11:09:44 stretchlimo kernel: ath0: scan_next: chan 9g -> 10g [active, dwell min 20 max 200] > Feb 21 11:09:44 stretchlimo kernel: ath0: scan_next: chan 10g -> 149a [active, dwell min 20 max 200] > Feb 21 11:09:44 stretchlimo kernel: ath0: scan_next: chan 149a -> 153a [active, dwell min 20 max 200] > Feb 21 11:09:44 stretchlimo kernel: ath0: scan_next: chan 153a -> 157a [active, dwell min 20 max 200] > Feb 21 11:09:44 stretchlimo kernel: ath0: scan_next: chan 157a -> 161a [active, dwell min 20 max 200] > Feb 21 11:09:45 stretchlimo kernel: ath0: scan_next: chan 161a -> 165a [active, dwell min 20 max 200] > Feb 21 11:09:45 stretchlimo kernel: ath0: scan_next: chan 165a -> 50S [active, dwell min 20 max 200] > Feb 21 11:09:45 stretchlimo kernel: ath0: scan_next: chan 50S -> 58S [active, dwell min 20 max 200] > Feb 21 11:09:45 stretchlimo kernel: ath0: scan_next: chan 58S -> 152S [active, dwell min 20 max 200] > Feb 21 11:09:45 stretchlimo kernel: ath0: scan_next: chan 152S -> 160S [active, dwell min 20 max 200] > Feb 21 11:09:46 stretchlimo kernel: ath0: sta_pick_bss: no scan candidate > Feb 21 11:09:46 stretchlimo kernel: ath0: scan_next: done, restart [ticks 5357219, dwell min 20 scanend 2152835125] > Feb 21 11:09:46 stretchlimo kernel: ath0: scan_next: chan 160S -> 1g [active, dwell min 20 max 200] > Feb 21 11:09:46 stretchlimo kernel: ath0: scan_next: chan 1g -> 6g [active, dwell min 20 max 200] > Feb 21 11:09:46 stretchlimo kernel: ath0: scan_next: chan 6g -> 11g [active, dwell min 20 max 200] > Feb 21 11:09:46 stretchlimo kernel: ath0: scan_next: chan 11g -> 7g [active, dwell min 20 max 200] > Feb 21 11:09:46 stretchlimo kernel: ath0: scan_next: chan 7g -> 52a [active, dwell min 20 max 200] > Feb 21 11:09:47 stretchlimo kernel: ath0: scan_next: chan 52a -> 56a [active, dwell min 20 max 200] > Feb 21 11:09:47 stretchlimo kernel: ath0: scan_next: chan 56a -> 60a [active, dwell min 20 max 200] > Feb 21 11:09:47 stretchlimo kernel: ath0: scan_next: chan 60a -> 64a [active, dwell min 20 max 200] > Feb 21 11:09:47 stretchlimo kernel: ath0: scan_next: chan 64a -> 36a [active, dwell min 20 max 200] > Feb 21 11:09:47 stretchlimo kernel: ath0: scan_next: chan 36a -> 40a [active, dwell min 20 max 200] > Feb 21 11:09:48 stretchlimo kernel: ath0: scan_next: chan 40a -> 44a [active, dwell min 20 max 200] > Feb 21 11:09:48 stretchlimo kernel: ath0: scan_next: chan 44a -> 48a [active, dwell min 20 max 200] > Feb 21 11:09:48 stretchlimo kernel: ath0: scan_next: chan 48a -> 2g [active, dwell min 20 max 200] > Feb 21 11:09:48 stretchlimo kernel: ath0: scan_next: chan 2g -> 3g [active, dwell min 20 max 200] > Feb 21 11:09:48 stretchlimo kernel: ath0: scan_next: chan 3g -> 4g [active, dwell min 20 max 200] > Feb 21 11:09:49 stretchlimo kernel: ath0: scan_next: chan 4g -> 5g [active, dwell min 20 max 200] > Feb 21 11:09:49 stretchlimo kernel: ath0: scan_next: chan 5g -> 8g [active, dwell min 20 max 200] > Feb 21 11:09:49 stretchlimo kernel: ath0: scan_next: chan 8g -> 9g [active, dwell min 20 max 200] > Feb 21 11:09:49 stretchlimo kernel: ath0: scan_next: chan 9g -> 10g [active, dwell min 20 max 200] > Feb 21 11:09:50 stretchlimo kernel: ath0: scan_next: chan 10g -> 149a [active, dwell min 20 max 200] > Feb 21 11:09:50 stretchlimo kernel: ath0: scan_next: chan 149a -> 153a [active, dwell min 20 max 200] > Feb 21 11:09:50 stretchlimo kernel: ath0: scan_next: chan 153a -> 157a [active, dwell min 20 max 200] > Feb 21 11:09:50 stretchlimo kernel: ath0: scan_next: chan 157a -> 161a [active, dwell min 20 max 200] > Feb 21 11:09:50 stretchlimo kernel: ath0: scan_next: chan 161a -> 165a [active, dwell min 20 max 200] > Feb 21 11:09:51 stretchlimo kernel: ath0: scan_next: chan 165a -> 50S [active, dwell min 20 max 200] > Feb 21 11:09:51 stretchlimo kernel: ath0: scan_next: chan 50S -> 58S [active, dwell min 20 max 200] > Feb 21 11:09:51 stretchlimo kernel: ath0: scan_next: chan 58S -> 152S [active, dwell min 20 max 200] > Feb 21 11:09:51 stretchlimo kernel: ath0: scan_next: chan 152S -> 160S [active, dwell min 20 max 200] > Feb 21 11:09:51 stretchlimo kernel: ath0: sta_pick_bss: no scan candidate > Feb 21 11:09:51 stretchlimo kernel: ath0: scan_next: done, restart [ticks 5362959, dwell min 20 scanend 2152835125] > Feb 21 11:09:51 stretchlimo kernel: ath0: scan_next: chan 160S -> 1g [active, dwell min 20 max 200] > Feb 21 11:09:52 stretchlimo kernel: ath0: scan_next: chan 1g -> 6g [active, dwell min 20 max 200] > Feb 21 11:09:52 stretchlimo kernel: ath0: scan_next: chan 6g -> 11g [active, dwell min 20 max 200] > Feb 21 11:09:52 stretchlimo kernel: ath0: scan_next: chan 11g -> 7g [active, dwell min 20 max 200] > Feb 21 11:09:52 stretchlimo kernel: ath0: scan_next: chan 7g -> 52a [active, dwell min 20 max 200] > Feb 21 11:09:52 stretchlimo kernel: ath0: scan_next: chan 52a -> 56a [active, dwell min 20 max 200] > Feb 21 11:09:53 stretchlimo kernel: ath0: scan_next: chan 56a -> 60a [active, dwell min 20 max 200] > Feb 21 11:09:53 stretchlimo kernel: ath0: scan_next: chan 60a -> 64a [active, dwell min 20 max 200] > Feb 21 11:09:53 stretchlimo kernel: ath0: scan_next: chan 64a -> 36a [active, dwell min 20 max 200] > Feb 21 11:09:53 stretchlimo kernel: ath0: scan_next: chan 36a -> 40a [active, dwell min 20 max 200] > Feb 21 11:09:53 stretchlimo kernel: ath0: scan_next: chan 40a -> 44a [active, dwell min 20 max 200] > Feb 21 11:09:54 stretchlimo kernel: ath0: scan_next: chan 44a -> 48a [active, dwell min 20 max 200] > Feb 21 11:09:54 stretchlimo kernel: ath0: scan_next: chan 48a -> 2g [active, dwell min 20 max 200] > Feb 21 11:09:54 stretchlimo kernel: ath0: scan_next: chan 2g -> 3g [active, dwell min 20 max 200] > Feb 21 11:09:54 stretchlimo kernel: ath0: scan_next: chan 3g -> 4g [active, dwell min 20 max 200] > Feb 21 11:09:54 stretchlimo kernel: ath0: scan_next: chan 4g -> 5g [active, dwell min 20 max 200] > Feb 21 11:09:55 stretchlimo kernel: ath0: scan_next: chan 5g -> 8g [active, dwell min 20 max 200] > Feb 21 11:09:55 stretchlimo kernel: ath0: scan_next: chan 8g -> 9g [active, dwell min 20 max 200] > Feb 21 11:09:55 stretchlimo kernel: ath0: scan_next: chan 9g -> 10g [active, dwell min 20 max 200] So the card never saw any beacon/probe response frames from any ap's. Are there any besides the one you're trying to use? Can you setup a 2nd laptop and sniff to see if your laptop is sending ProbeRequest on the channel the ap is using and/or whether it sees frames this laptop doesn't see? BTW I think you're missing a deftxkey 1 in your ifconfig line. Sam