ath0 will not associate

Sam Leffler sam at errno.com
Thu Feb 21 22:36:47 UTC 2008


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: <Atheros 5212> 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: <Atheros 5212> 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: <Atheros 5212> 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




More information about the freebsd-hackers mailing list