From nobody@FreeBSD.org  Tue Mar 17 08:13:06 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C747D106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Mar 2009 08:13:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id B46F18FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Mar 2009 08:13:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2H8D6tU073765
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Mar 2009 08:13:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n2H8D6dH073764;
	Tue, 17 Mar 2009 08:13:06 GMT
	(envelope-from nobody)
Message-Id: <200903170813.n2H8D6dH073764@www.freebsd.org>
Date: Tue, 17 Mar 2009 08:13:06 GMT
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Wifi ath0 associates fine with AP, but DHCP or IP does not work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132722
>Category:       kern
>Synopsis:       [ath] Wifi ath0 associates fine with AP, but DHCP or IP does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 17 08:20:02 UTC 2009
>Closed-Date:    
>Last-Modified:  Mon Apr 11 11:44:40 UTC 2011
>Originator:     Matthias Apitz
>Release:        7.1-STABLE
>Organization:
>Environment:
FreeBSD tiny 7.1-STABLE FreeBSD 7.1-STABLE #1: Tue Mar 10 11:42:48 CET 2009
guru@rebelion.Sisis.de:/usr/src/sys/i386/compile/REBELION  i386

>Description:

>How-To-Repeat:
the Wifi ath0 associates successfully to the AP:

# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:15:af:b2:ae:e6
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps)
        status: associated
        ssid ConnectionPoint channel 11 (2462 Mhz 11g) bssid 00:01:e3:0e:97:99
        authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit txpower 31.5
        bmiss 7 scanvalid 60 protmode CTS burst roaming MANUAL

DHCP is not successfull

# dhclient -d ath0
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
       
side note: a Nokia mobile phone can do DHCP successfull with the same AP, i.e.
there is no MAC addr blacklisting in the AP;


more details, including athstats and tcpdump see attached file ath0.txt

>Fix:


Patch attached with submission follows:


# uname -a
FreeBSD tiny 7.1-STABLE FreeBSD 7.1-STABLE #1: Tue Mar 10 11:42:48 CET 2009     guru@rebelion.Sisis.de:/usr/src/sys/i386/compile/REBELION  i386

the Wifi ath0 associates successfully to the AP:

# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:15:af:b2:ae:e6
	inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
	media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/36Mbps)
	status: associated
	ssid ConnectionPoint channel 11 (2462 Mhz 11g) bssid 00:01:e3:0e:97:99
	authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit txpower 31.5
	bmiss 7 scanvalid 60 protmode CTS burst roaming MANUAL


athstat shows:

# athstats

5776     data frames received
13       data frames transmit
10       tx frames with an alternate rate
22       long on-chip tx retries
84       mib overflow interrupts
2M       current transmit rate
8        beacon miss interrupts
20       tx management frames
37       tx frames discarded prior to association
11       tx frames with no ack marked
64       rx failed 'cuz of bad CRC
40       periodic calibrations
6        rssi of last ack
12       avg recv rssi
-96      rx noise floor
1        phantom beacon misses
251      switched default/rx antenna
Antenna profile:
[1] tx       18 rx     7251
[2] tx       11 rx     3952


# athstats

5776     data frames received
13       data frames transmit
10       tx frames with an alternate rate
22       long on-chip tx retries
84       mib overflow interrupts
2M       current transmit rate
8        beacon miss interrupts
20       tx management frames
37       tx frames discarded prior to association
11       tx frames with no ack marked
64       rx failed 'cuz of bad CRC
40       periodic calibrations
6        rssi of last ack
15       avg recv rssi
-96      rx noise floor
1        phantom beacon misses
255      switched default/rx antenna
Antenna profile:
[1] tx       18 rx     7283
[2] tx       11 rx     3987

# athstats 5


   input   output altrate   short    long xretry crcerr crypt  phyerr rssi rate
    6535       13      10       0      22      0     64     0       0   14   2M
       0        0       0       0       0      0      0     0       0   15   2M
       0        0       0       0       0      0      0     0       0   13   2M
       0        0       0       0       0      0      0     0       0   13   2M
       0        0       0       0       0      0      0     0       0   11   2M
       0        0       0       0       0      0      0     0       0    9   2M
       0        0       0       0       0      0      0     0       0   13   2M
     267        0       0       0       0      0      0     0       0   15   2M
     465        0       0       0       0      0      0     0       0   17   2M
      26        0       0       0       0      0      0     0       0   15   2M
       0        0       0       0       0      0      1     0       0   10   2M
       0        0       0       0       0      0      0     0       0   14   2M
       0        0       0       0       0      0      0     0       0   12   2M
       0        0       0       0       0      0      0     0       0   12   2M
       0        0       0       0       0      0      1     0       0   11   2M
       0        0       0       0       0      0      0     0       0   15   2M
       0        0       0       0       0      0      1     0       0   14   2M
       0        1       0       0       0      0      0     0       0   12  11M
       0        1       0       0       0      0      0     0       0   11  11M
       0        0       0       0       0      0      0     0       0    8  11M
      40        1       0       0       0      0      1     0       0    6  11M
   input   output altrate   short    long xretry crcerr crypt  phyerr rssi rate
    7810       16      10       0      22      0     68     0       0    7  11M
     225        1       0       0       1      0      2     0       0    9  11M
       0        0       0       0       0      0      1     0       0   10  11M
       0        0       0       0       0      0      0     0       0   13  11M
       0        0       0       0       0      0      0     0       0   15  11M
       0        1       0       0       0      0      0     0       0   14   6M
       0        0       0       0       0      0      0     0       0   12   6M
       0        1       1       0       2      0      0     0       0   13   6M
       0        0       0       0       0      0      0     0       0   11   6M
       0        0       0       0       0      0      3     0       0    8   6M
       0        0       0       0       0      0      0     0       0   15   6M
       0        0       0       0       0      0      0     0       0   14   6M
       0        0       0       0       0      0      2     0       0   16   6M
     278        0       0       0       0      0      1     0       0   17   6M
     449        0       0       0       0      0      0     0       0   16   6M
      30        0       0       0       0      0      0     0       0   11   6M
       0        0       0       0       0      0      0     0       0   17   6M
       0        0       0       0       0      0      0     0       0   17   6M
       0        0       0       0       0      0      0     0       0   14   6M
       0        0       0       0       0      0      0     0       0   13   6M
       0        0       0       0       0      0      0     0       0   14   6M


DHCP is not successfull

# dhclient -d ath0
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

side note: a Nokia mobile phone can do DHCP successfull with the same AP, i.e.
there is no MAC addr blacklisting in the AP;

while running the above DHCP a tcpdump on the interface ath0 produces the output below;
it seems that the MAC addr of the AP is seen (Etherframe) but the rest is not
decodeable (crypted or compressed?):

# tcpdump -n -i ath0 (for dhclient -d ath0)

21:21:22.819294 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:15:af:b2:ae:e6, length 300
21:21:25.024803 00:01:e3:0e:97:98 Unknown SSAP 0x4a > ff:ff:ff:ff:ff:ff Unknown DSAP 0x58 Supervisory, Receiver Ready, rcv seq 121, Flags [Poll], length 36
21:21:25.025689 00:01:e3:0e:97:98 Unknown SSAP 0xce > ff:ff:ff:ff:ff:ff Unknown DSAP 0x3e Supervisory, Receiver Ready, rcv seq 49, Flags [Poll], length 36
21:21:25.026619 00:01:e3:0e:97:98 Unknown SSAP 0x3c > ff:ff:ff:ff:ff:ff Unknown DSAP 0x58 Supervisory, ?, rcv seq 57, Flags [Final], length 36
21:21:25.027505 00:01:e3:0e:97:98 Unknown SSAP 0x10 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x68 Information, send seq 19, rcv seq 110, Flags [Poll], length 36
21:21:25.028319 00:01:e3:0e:97:98 Unknown SSAP 0x2e > ff:ff:ff:ff:ff:ff Unknown DSAP 0xea Supervisory, ?, rcv seq 88, Flags [Poll], length 36
21:21:25.029232 00:01:e3:0e:97:98 Unknown SSAP 0xfc > ff:ff:ff:ff:ff:ff Unknown DSAP 0xc0 Supervisory, Receiver not Ready, rcv seq 44, Flags [Command], length 36
21:21:25.030036 00:01:e3:0e:97:98 Unknown SSAP 0xf6 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xd0 Information, send seq 90, rcv seq 104, Flags [Command], length 36
21:21:25.332089 00:01:e3:0e:97:98 Unknown SSAP 0x10 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x48 Supervisory, Receiver not Ready, rcv seq 71, Flags [Response], length 36
21:21:25.332896 00:01:e3:0e:97:98 Unknown SSAP 0xb4 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x50 Unnumbered, 47, Flags [Command], length 36
21:21:25.333710 00:01:e3:0e:97:98 Unknown SSAP 0x4a > ff:ff:ff:ff:ff:ff Unknown DSAP 0x40 Information, send seq 6, rcv seq 62, Flags [Response], length 36
21:21:25.334533 00:01:e3:0e:97:98 Unknown SSAP 0x92 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xf4 Supervisory, Receiver not Ready, rcv seq 114, Flags [Final], length 36
21:21:25.335382 00:01:e3:0e:97:98 Unknown SSAP 0x14 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x7a Information, send seq 73, rcv seq 99, Flags [Response], length 36
21:21:25.336286 00:01:e3:0e:97:98 Unknown SSAP 0x76 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xba Supervisory, Reject, rcv seq 55, Flags [Final], length 36
21:21:25.337217 00:01:e3:0e:97:98 Unknown SSAP 0x16 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x5c Information, send seq 11, rcv seq 59, Flags [Final], length 36
21:21:25.338148 00:01:e3:0e:97:98 Unknown SSAP 0x3e > ff:ff:ff:ff:ff:ff Unknown DSAP 0xc0 Unnumbered, 4b, Flags [Poll], length 36
21:21:25.339062 00:01:e3:0e:97:98 Unknown SSAP 0x7c > ff:ff:ff:ff:ff:ff Unknown DSAP 0x1c Unnumbered, test, Flags [Command], length 36
21:21:25.339912 00:01:e3:0e:97:98 Unknown SSAP 0x58 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x32 Information, send seq 19, rcv seq 32, Flags [Poll], length 36
21:21:25.340806 00:01:e3:0e:97:98 Unknown SSAP 0x3e > ff:ff:ff:ff:ff:ff IPX Information, send seq 66, rcv seq 33, Flags [Final], length 36
21:21:25.639259 00:01:e3:0e:97:98 Unknown SSAP 0x40 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xb8 Information, send seq 57, rcv seq 116, Flags [Response], length 36
21:21:25.640148 00:01:e3:0e:97:98 SNA > ff:ff:ff:ff:ff:ff Unknown DSAP 0x66 Information, send seq 61, rcv seq 126, Flags [Poll], length 36
21:21:25.641912 00:01:e3:0e:97:98 Null > ff:ff:ff:ff:ff:ff Unknown DSAP 0x9c Information, send seq 79, rcv seq 119, Flags [Response], length 36
21:21:25.642824 00:01:e3:0e:97:98 Unknown SSAP 0x16 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x66 Information, send seq 105, rcv seq 45, Flags [Response], length 36
21:21:25.643693 00:01:e3:0e:97:98 Unknown SSAP 0x70 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x72 Unnumbered, a3, Flags [Command], length 36
21:21:25.644534 00:01:e3:0e:97:98 Unknown SSAP 0xac > ff:ff:ff:ff:ff:ff Unknown DSAP 0x36 Unnumbered, 27, Flags [Response], length 36
21:21:25.645357 00:01:e3:0e:97:98 Unknown SSAP 0x18 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x76 Information, send seq 10, rcv seq 5, Flags [Poll], length 36
21:21:25.646269 00:01:e3:0e:97:98 Unknown SSAP 0x36 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xe4 Information, send seq 114, rcv seq 95, Flags [Poll], length 36
21:21:25.647084 00:01:e3:0e:97:98 Unknown SSAP 0xae > ff:ff:ff:ff:ff:ff Unknown DSAP 0x48 Unnumbered, xid, Flags [Poll], length 36
21:21:25.647898 00:01:e3:0e:97:98 Unknown SSAP 0xf6 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xe2 Information, send seq 5, rcv seq 82, Flags [Command], length 36
21:21:25.947238 00:01:e3:0e:97:98 Unknown SSAP 0xf6 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x4c Unnumbered, 8f, Flags [Command], length 36
21:21:25.948118 00:01:e3:0e:97:98 Unknown SSAP 0xba > ff:ff:ff:ff:ff:ff Unknown DSAP 0x50 Unnumbered, c7, Flags [Final], length 36
21:21:25.949013 00:01:e3:0e:97:98 Unknown SSAP 0xd2 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xcc Supervisory, Reject, rcv seq 104, Flags [Final], length 36
21:21:25.949926 00:01:e3:0e:97:98 Unknown SSAP 0xd2 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xc4 Supervisory, Receiver not Ready, rcv seq 77, Flags [Final], length 36
21:21:25.951635 00:01:e3:0e:97:98 Unknown SSAP 0xea > ff:ff:ff:ff:ff:ff Unknown DSAP 0x14 Information, send seq 32, rcv seq 17, Flags [Command], length 36
21:21:25.952494 00:01:e3:0e:97:98 Unknown SSAP 0xfa > ff:ff:ff:ff:ff:ff Unknown DSAP 0xee Unnumbered, 47, Flags [Poll], length 36
21:21:25.953416 00:01:e3:0e:97:98 Unknown SSAP 0x70 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x3c Information, send seq 83, rcv seq 76, Flags [Poll], length 36
21:21:25.954320 00:01:e3:0e:97:98 Unknown SSAP 0x7a > ff:ff:ff:ff:ff:ff Null Supervisory, ?, rcv seq 6, Flags [Final], length 36
21:21:25.955134 00:01:e3:0e:97:98 Unknown SSAP 0xb0 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xa8 Unnumbered, test, Flags [Response], length 36
21:21:25.955984 00:01:e3:0e:97:98 Unknown SSAP 0xc2 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x72 Unnumbered, disc, Flags [Poll], length 36
21:21:25.956870 00:01:e3:0e:97:98 Unknown SSAP 0x34 > ff:ff:ff:ff:ff:ff 802.1B I Information, send seq 50, rcv seq 93, Flags [Command], length 36
21:21:25.957747 00:01:e3:0e:97:98 Unknown SSAP 0x74 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xb0 Information, send seq 9, rcv seq 113, Flags [Final], length 36
21:21:26.253619 00:01:e3:0e:97:98 Unknown SSAP 0xb2 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xde Supervisory, Receiver Ready, rcv seq 42, Flags [Poll], length 36
21:21:26.254517 00:01:e3:0e:97:98 Unknown SSAP 0x46 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x34 Supervisory, Receiver Ready, rcv seq 5, Flags [Final], length 36
21:21:26.255447 00:01:e3:0e:97:98 Unknown SSAP 0xca > ff:ff:ff:ff:ff:ff Unknown DSAP 0x34 Information, send seq 49, rcv seq 113, Flags [Final], length 36
21:21:26.256369 00:01:e3:0e:97:98 Unknown SSAP 0xb6 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x60 Information, send seq 85, rcv seq 103, Flags [Final], length 36
21:21:26.257301 00:01:e3:0e:97:98 Unknown SSAP 0xc4 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xdc Information, send seq 44, rcv seq 42, Flags [Response], length 36
21:21:26.258133 00:01:e3:0e:97:98 OSI > ff:ff:ff:ff:ff:ff Unknown DSAP 0x3a Supervisory, ?, rcv seq 37, Flags [Response], length 36
21:21:26.259054 00:01:e3:0e:97:98 Unknown SSAP 0xac > ff:ff:ff:ff:ff:ff Unknown DSAP 0x96 Information, send seq 106, rcv seq 124, Flags [Final], length 36
21:21:26.259887 00:01:e3:0e:97:98 IPX > ff:ff:ff:ff:ff:ff Unknown DSAP 0xc6 Information, send seq 1, rcv seq 97, Flags [Command], length 36
21:21:26.260692 00:01:e3:0e:97:98 Unknown SSAP 0x26 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x8a Information, send seq 94, rcv seq 108, Flags [Response], length 36
21:21:26.261574 00:01:e3:0e:97:98 Unknown SSAP 0xb2 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x94 Supervisory, ?, rcv seq 76, Flags [Response], length 36
21:21:26.262418 00:01:e3:0e:97:98 Unknown SSAP 0x9c > ff:ff:ff:ff:ff:ff Unknown DSAP 0xd4 Unnumbered, test, Flags [Response], length 36
21:21:26.263223 00:01:e3:0e:97:98 Unknown SSAP 0x9e > ff:ff:ff:ff:ff:ff Unknown DSAP 0x74 Unnumbered, disc, Flags [Poll], length 36
21:21:26.264118 00:01:e3:0e:97:98 Unknown SSAP 0xf6 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xde Unnumbered, disc, Flags [Final], length 36
21:21:26.264923 00:01:e3:0e:97:98 Unknown SSAP 0x7c > ff:ff:ff:ff:ff:ff Unknown DSAP 0xbe Unnumbered, a3, Flags [Response], length 36
21:21:26.265765 00:01:e3:0e:97:98 Unknown SSAP 0xee > ff:ff:ff:ff:ff:ff Unknown DSAP 0xa8 Unnumbered, 2b, Flags [Response], length 36
21:21:26.266669 00:01:e3:0e:97:98 Unknown SSAP 0xc8 > ff:ff:ff:ff:ff:ff SNAP Unnumbered, c7, Flags [Command], length 36
21:21:26.267572 00:01:e3:0e:97:98 Unknown SSAP 0x3e > ff:ff:ff:ff:ff:ff Unknown DSAP 0xb8 Information, send seq 92, rcv seq 5, Flags [Poll], length 36
21:21:26.268494 00:01:e3:0e:97:98 Unknown SSAP 0xb8 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x40 Unnumbered, a7, Flags [Poll], length 36
21:21:26.269327 00:01:e3:0e:97:98 Unknown SSAP 0x44 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x7c Supervisory, Receiver Ready, rcv seq 51, Flags [Poll], length 36
21:21:26.270132 00:01:e3:0e:97:98 Null > ff:ff:ff:ff:ff:ff Unknown DSAP 0x0a Supervisory, ?, rcv seq 56, Flags [Command], length 36
21:21:26.270955 00:01:e3:0e:97:98 Unknown SSAP 0xee > ff:ff:ff:ff:ff:ff Unknown DSAP 0x34 Information, send seq 49, rcv seq 48, Flags [Final], length 36
21:21:26.271826 00:01:e3:0e:97:98 Unknown SSAP 0xee > ff:ff:ff:ff:ff:ff Unknown DSAP 0xfa Unnumbered, 8b, Flags [Poll], length 36
21:21:26.272701 00:01:e3:0e:97:98 Unknown SSAP 0xc6 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x54 Information, send seq 63, rcv seq 23, Flags [Response], length 36
21:21:26.561755 00:01:e3:0e:97:98 Unknown SSAP 0x52 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xae Supervisory, Reject, rcv seq 111, Flags [Command], length 36
21:21:26.562599 00:01:e3:0e:97:98 STP > ff:ff:ff:ff:ff:ff Unknown DSAP 0xf2 Unnumbered, c3, Flags [Response], length 36
21:21:26.563512 00:01:e3:0e:97:98 Unknown SSAP 0x56 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x86 Information, send seq 100, rcv seq 92, Flags [Poll], length 36
21:21:26.564398 00:01:e3:0e:97:98 Unknown SSAP 0xba > ff:ff:ff:ff:ff:ff Unknown DSAP 0xe8 Supervisory, Receiver Ready, rcv seq 4, Flags [Response], length 36
21:21:26.565194 00:01:e3:0e:97:98 Unknown SSAP 0xbe > ff:ff:ff:ff:ff:ff Unknown DSAP 0x40 Supervisory, Receiver not Ready, rcv seq 105, Flags [Poll], length 36
21:21:26.566107 00:01:e3:0e:97:98 Unknown SSAP 0x68 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xa2 Information, send seq 42, rcv seq 99, Flags [Poll], length 36
21:21:26.567941 00:01:e3:0e:97:98 Unknown SSAP 0x24 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x78 Unnumbered, 2b, Flags [Final], length 36
21:21:26.568818 00:01:e3:0e:97:98 Unknown SSAP 0xde > ff:ff:ff:ff:ff:ff Unknown DSAP 0x5c Information, send seq 62, rcv seq 96, Flags [Response], length 36
21:21:26.569624 00:01:e3:0e:97:98 Unknown SSAP 0x34 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xda Information, send seq 79, rcv seq 111, Flags [Command], length 36
21:21:26.570492 00:01:e3:0e:97:98 Unknown SSAP 0x80 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xe2 Information, send seq 101, rcv seq 61, Flags [Poll], length 36
21:21:26.571297 00:01:e3:0e:97:98 Unknown SSAP 0xde > ff:ff:ff:ff:ff:ff Unknown DSAP 0x80 Supervisory, Receiver not Ready, rcv seq 56, Flags [Poll], length 36
21:21:26.572229 00:01:e3:0e:97:98 Unknown SSAP 0xd4 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xa0 Supervisory, Receiver Ready, rcv seq 0, Flags [Response], length 36
21:21:26.573150 00:01:e3:0e:97:98 Unknown SSAP 0x1e > ff:ff:ff:ff:ff:ff Unknown DSAP 0xa6 Supervisory, Receiver not Ready, rcv seq 31, Flags [Poll], length 36
21:21:26.574063 00:01:e3:0e:97:98 Unknown SSAP 0x34 > ff:ff:ff:ff:ff:ff NetBeui Supervisory, Reject, rcv seq 65, Flags [Command], length 36
21:21:26.574886 00:01:e3:0e:97:98 Unknown SSAP 0x3e > ff:ff:ff:ff:ff:ff Unknown DSAP 0x56 Unnumbered, e7, Flags [Final], length 36
21:21:26.575808 00:01:e3:0e:97:98 Unknown SSAP 0x7c > ff:ff:ff:ff:ff:ff Unknown DSAP 0xbe Information, send seq 59, rcv seq 30, Flags [Command], length 36
21:21:26.576631 00:01:e3:0e:97:98 Unknown SSAP 0x6e > ff:ff:ff:ff:ff:ff Unknown DSAP 0x0a Information, send seq 117, rcv seq 115, Flags [Command], length 36
21:21:26.577499 00:01:e3:0e:97:98 Unknown SSAP 0x22 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x70 Unnumbered, c7, Flags [Final], length 36
21:21:26.578420 00:01:e3:0e:97:98 Unknown SSAP 0x74 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x3c Information, send seq 18, rcv seq 21, Flags [Final], length 36
21:21:26.867985 00:01:e3:0e:97:98 SNAP > ff:ff:ff:ff:ff:ff Unknown DSAP 0x92 Supervisory, Receiver not Ready, rcv seq 124, Flags [Poll], length 36
21:21:26.868792 00:01:e3:0e:97:98 Unknown SSAP 0x92 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x5e Information, send seq 39, rcv seq 109, Flags [Poll], length 36
21:21:26.869633 00:01:e3:0e:97:98 Unknown SSAP 0x78 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x48 Unnumbered, 4f, Flags [Poll], length 36
21:21:26.870473 00:01:e3:0e:97:98 Unknown SSAP 0x32 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x14 Unnumbered, test, Flags [Response], length 36
21:21:26.871341 00:01:e3:0e:97:98 Unknown SSAP 0x1a > ff:ff:ff:ff:ff:ff Unknown DSAP 0xa4 Supervisory, ?, rcv seq 53, Flags [Command], length 36
21:21:26.872149 00:01:e3:0e:97:98 Unknown SSAP 0x64 > ff:ff:ff:ff:ff:ff 802.1B I Information, send seq 3, rcv seq 23, Flags [Final], length 36
21:21:26.872943 00:01:e3:0e:97:98 Unknown SSAP 0xac > ff:ff:ff:ff:ff:ff Unknown DSAP 0x1c Supervisory, Reject, rcv seq 63, Flags [Poll], length 36
21:21:26.873747 00:01:e3:0e:97:98 Unknown SSAP 0x6a > ff:ff:ff:ff:ff:ff Unknown DSAP 0xe8 Information, send seq 118, rcv seq 90, Flags [Poll], length 36
21:21:26.874579 00:01:e3:0e:97:98 Unknown SSAP 0x38 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xb4 Information, send seq 63, rcv seq 79, Flags [Command], length 36
21:21:26.875457 00:01:e3:0e:97:98 Unknown SSAP 0x84 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xea Information, send seq 75, rcv seq 91, Flags [Final], length 36
21:21:26.876343 00:01:e3:0e:97:98 STP > ff:ff:ff:ff:ff:ff Unknown DSAP 0xce Information, send seq 23, rcv seq 65, Flags [Response], length 36
21:21:26.877229 00:01:e3:0e:97:98 Unknown SSAP 0x68 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x5c Information, send seq 98, rcv seq 6, Flags [Command], length 36
21:21:26.878060 00:01:e3:0e:97:98 Unknown SSAP 0xd4 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x8a Unnumbered, 6b, Flags [Response], length 36
21:21:26.878947 00:01:e3:0e:97:98 Unknown SSAP 0x84 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x44 Unnumbered, 83, Flags [Final], length 36
21:21:26.879868 00:01:e3:0e:97:98 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xc8 Information, send seq 69, rcv seq 118, Flags [Response], length 36
21:21:26.880683 00:01:e3:0e:97:98 Unknown SSAP 0x74 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xc6 Information, send seq 99, rcv seq 126, Flags [Response], length 36
21:21:26.881488 00:01:e3:0e:97:98 Unknown SSAP 0x0c > ff:ff:ff:ff:ff:ff Unknown DSAP 0x98 Unnumbered, dm, Flags [Final], length 36
21:21:26.882310 00:01:e3:0e:97:98 802.1B I > ff:ff:ff:ff:ff:ff Unknown DSAP 0xfc Supervisory, ?, rcv seq 56, Flags [Poll], length 36
21:21:26.883151 00:01:e3:0e:97:98 Unknown SSAP 0x24 > ff:ff:ff:ff:ff:ff RS511 Information, send seq 86, rcv seq 28, Flags [Final], length 36
21:21:26.884055 00:01:e3:0e:97:98 Unknown SSAP 0xa2 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x52 Unnumbered, test, Flags [Final], length 36
21:21:26.884869 00:01:e3:0e:97:98 Unknown SSAP 0x7a > ff:ff:ff:ff:ff:ff Unknown DSAP 0x3c Information, send seq 97, rcv seq 78, Flags [Poll], length 36
21:21:26.885675 00:01:e3:0e:97:98 Unknown SSAP 0x78 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x86 Information, send seq 95, rcv seq 12, Flags [Poll], length 36
21:21:26.886479 00:01:e3:0e:97:98 Unknown SSAP 0xfc > ff:ff:ff:ff:ff:ff Unknown DSAP 0xde Unnumbered, 83, Flags [Final], length 36
21:21:27.175195 00:01:e3:0e:97:98 Unknown SSAP 0xee > ff:ff:ff:ff:ff:ff Unknown DSAP 0x28 Information, send seq 104, rcv seq 9, Flags [Command], length 36
21:21:27.176121 00:01:e3:0e:97:98 Unknown SSAP 0xfa > ff:ff:ff:ff:ff:ff Unknown DSAP 0x64 Supervisory, Reject, rcv seq 111, Flags [Final], length 36
21:21:27.176926 00:01:e3:0e:97:98 Unknown SSAP 0x78 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x5e Unnumbered, 23, Flags [Command], length 36
21:21:27.177740 00:01:e3:0e:97:98 Unknown SSAP 0xa4 > ff:ff:ff:ff:ff:ff SNAP Information, send seq 42, rcv seq 97, Flags [Command], length 36
21:21:27.178572 00:01:e3:0e:97:98 NetBeui > ff:ff:ff:ff:ff:ff Unknown DSAP 0x46 Information, send seq 43, rcv seq 103, Flags [Final], length 36
21:21:27.179476 00:01:e3:0e:97:98 Unknown SSAP 0x9e > ff:ff:ff:ff:ff:ff Unknown DSAP 0xd6 Unnumbered, ef, Flags [Response], length 36
21:21:27.180307 00:01:e3:0e:97:98 Unknown SSAP 0x4a > ff:ff:ff:ff:ff:ff Unknown DSAP 0xa6 Information, send seq 61, rcv seq 58, Flags [Final], length 36
21:21:27.181238 00:01:e3:0e:97:98 Unknown SSAP 0x48 > ff:ff:ff:ff:ff:ff Unknown DSAP 0x20 Unnumbered, eb, Flags [Response], length 36
21:21:27.182099 00:01:e3:0e:97:98 Unknown SSAP 0xa6 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xb0 Supervisory, Receiver Ready, rcv seq 41, Flags [Final], length 36
21:21:27.182993 00:01:e3:0e:97:98 Unknown SSAP 0xa4 > ff:ff:ff:ff:ff:ff Unknown DSAP 0xea Information, send seq 14, rcv seq 79, Flags [Response], length 36


src/contrib/tcpdump-3.9/print-llc.c


			if (esrc == NULL || edst == NULL)
    327 				(void)printf("%s > %s ",
    328                                         tok2str(llc_values, "Unknown SSAP 0x%02x", ssap),
    329 					tok2str(llc_values, "Unknown DSAP 0x%02x", dsap));
    330 			else
    331 				(void)printf("%s %s > %s %s ",
    332 					etheraddr_string(esrc),
    333                                         tok2str(llc_values, "Unknown SSAP 0x%02x", ssap),
    334 					etheraddr_string(edst),
    335 					tok2str(llc_values, "Unknown DSAP 0x%02x", dsap));


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Mar 17 08:21:07 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132722 

From: Bruce Simpson <bms@incunabulum.net>
To: freebsd-gnats-submit@freebsd.org
Cc: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, 
 freebsd-net@FreeBSD.org, Matthias Apitz <guru@unixarea.de>, 
 Sam Leffler <sam@FreeBSD.org>
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP,	but DHCP
 or IP does not work
Date: Tue, 17 Mar 2009 08:31:38 +0000

 Hi,
 
 Can you please try cvsupping RELENG_7 sources to after this date:
 
 %%%
 
 Date: Thu Mar 12 03:09:11 2009
 New Revision: 189720
 URL: http://svn.freebsd.org/changeset/base/189720
 
 %%%
 
 The Atheros open source HAL from  HEAD was MFC'd and this may or may not 
 fix your problem.
 
 thanks,
 BMS

From: Matthias Apitz <guru@unixarea.de>
To: bug-followup@FreeBSD.org, guru@unixarea.de
Cc:  
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP or IP does not work
Date: Tue, 17 Mar 2009 09:42:43 +0100

 I forgot to mention that I've applied this patch from Sam to my RELENG_7
 kernel:
 
 http://article.gmane.org/gmane.os.freebsd.stable/60383/match=cft+ath+hal+src
 
 I think, updating to 
 
 Date: Thu Mar 12 03:09:11 2009
 New Revision: 189720
 URL: http://svn.freebsd.org/changeset/base/189720
 
 as suggested will not change anything, or I'm wrong?
 
 	matthias

From: Matthias Apitz <guru@unixarea.de>
To: bug-followup@FreeBSD.org
Cc: freebsd-net@FreeBSD.org, Bruce Simpson <bms@incunabulum.net>
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP or IP does not work
Date: Tue, 17 Mar 2009 11:36:51 +0100

 as requested the output of dmesg(1) and the ath0 related part of
 'pciconf -lv'; pls note also that the Wifi works fine in general, i.e.
 with the AP in my office (WPA) and in my home (WEP);
 
 
 Copyright (c) 1992-2009 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 	The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
 FreeBSD 7.1-STABLE #1: Tue Mar 10 11:42:48 CET 2009
     guru@rebelion.Sisis.de:/usr/src/sys/i386/compile/REBELION
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: Intel(R) Celeron(R) M processor          900MHz (900.10-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x6d8  Stepping = 8
   Features=0xafe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE>
   AMD Features=0x100000<NX>
 real memory  = 1064828928 (1015 MB)
 avail memory = 1028284416 (980 MB)
 ACPI APIC Table: <A M I  OEMAPIC >
 ioapic0 <Version 2.0> irqs 0-23 on motherboard
 kbd1 at kbdmux0
 acpi0: <A M I OEMRSDT> on motherboard
 acpi0: [ITHREAD]
 acpi0: Power Button (fixed)
 acpi0: reservation of 0, a0000 (3) failed
 acpi0: reservation of 100000, 3f700000 (3) failed
 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
 acpi_ec0: <Embedded Controller: GPE 0x18> port 0x62,0x66 on acpi0
 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 vgapci0: <VGA-compatible display> port 0xec00-0xec07 mem 0xf7f00000-0xf7f7ffff,0xd0000000-0xdfffffff,0xf7ec0000-0xf7efffff irq 16 at device 2.0 on pci0
 agp0: <Intel 82915GM (915GM GMCH) SVGA controller> on vgapci0
 agp0: detected 7932k stolen memory
 agp0: aperture size is 256M
 vgapci1: <VGA-compatible display> mem 0xf7f80000-0xf7ffffff at device 2.1 on pci0
 hdac0: <Intel 82801F High Definition Audio Controller> mem 0xf7eb8000-0xf7ebbfff irq 16 at device 27.0 on pci0
 hdac0: HDA Driver Revision: 20090131_0127
 hdac0: [ITHREAD]
 pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
 pci3: <ACPI PCI bus> on pcib1
 pcib2: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
 pci1: <ACPI PCI bus> on pcib2
 ath0: <Atheros 5424/2424> mem 0xfbff0000-0xfbffffff irq 18 at device 0.0 on pci1
 ath0: [ITHREAD]
 ath0: WARNING: using obsoleted if_watchdog interface
 ath0: Ethernet address: 00:15:af:b2:ae:e6
 ath0: mac 14.2 phy 7.0 radio 10.2
 uhci0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> port 0xe400-0xe41f irq 23 at device 29.0 on pci0
 uhci0: [GIANT-LOCKED]
 uhci0: [ITHREAD]
 usb0: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-A> on uhci0
 usb0: USB revision 1.0
 uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
 uhub0: 2 ports with 2 removable, self powered
 uhci1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> port 0xe480-0xe49f irq 19 at device 29.1 on pci0
 uhci1: [GIANT-LOCKED]
 uhci1: [ITHREAD]
 usb1: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-B> on uhci1
 usb1: USB revision 1.0
 uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
 uhub1: 2 ports with 2 removable, self powered
 uhci2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> port 0xe800-0xe81f irq 18 at device 29.2 on pci0
 uhci2: [GIANT-LOCKED]
 uhci2: [ITHREAD]
 usb2: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-C> on uhci2
 usb2: USB revision 1.0
 uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
 uhub2: 2 ports with 2 removable, self powered
 uhci3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> port 0xe880-0xe89f irq 16 at device 29.3 on pci0
 uhci3: [GIANT-LOCKED]
 uhci3: [ITHREAD]
 usb3: <Intel 82801FB/FR/FW/FRW (ICH6) USB controller USB-D> on uhci3
 usb3: USB revision 1.0
 uhub3: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
 uhub3: 2 ports with 2 removable, self powered
 ehci0: <Intel 82801FB (ICH6) USB 2.0 controller> mem 0xf7eb7c00-0xf7eb7fff irq 23 at device 29.7 on pci0
 ehci0: [GIANT-LOCKED]
 ehci0: [ITHREAD]
 usb4: EHCI version 1.0
 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
 usb4: <Intel 82801FB (ICH6) USB 2.0 controller> on ehci0
 usb4: USB revision 2.0
 uhub4: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
 uhub4: 8 ports with 8 removable, self powered
 umass0: <ENE UB6225, class 0/0, rev 2.00/1.00, addr 2> on uhub4
 pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
 pci4: <ACPI PCI bus> on pcib3
 isab0: <PCI-ISA bridge> at device 31.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <Intel ICH6M SATA150 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.2 on pci0
 ata0: <ATA channel 0> on atapci0
 ata0: [ITHREAD]
 ata1: <ATA channel 1> on atapci0
 ata1: [ITHREAD]
 pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
 acpi_asus0: <ASUS EeePC> on acpi0
 acpi_lid0: <Control Method Lid Switch> on acpi0
 acpi_button0: <Sleep Button> on acpi0
 acpi_button1: <Power Button> on acpi0
 acpi_tz0: <Thermal Zone> on acpi0
 battery0: <ACPI Control Method Battery> on acpi0
 acpi_acad0: <AC Adapter> on acpi0
 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 atkbd0: [ITHREAD]
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: [GIANT-LOCKED]
 psm0: [ITHREAD]
 psm0: model IntelliMouse, device ID 3
 cpu0: <ACPI CPU> on acpi0
 p4tcc0: <CPU Frequency Thermal Control> on cpu0
 pmtimer0 on isa0
 orm0: <ISA Option ROM> at iomem 0xc0000-0xcf7ff pnpid ORM0000 on isa0
 ppc0: parallel port not found.
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=0x300>
 sio0: configured irq 4 not in bitmap of probed irqs 0
 sio0: port may not be enabled
 sio0: configured irq 4 not in bitmap of probed irqs 0
 sio0: port may not be enabled
 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 8250 or not responding
 sio0: [FILTER]
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
 Timecounter "TSC" frequency 900097206 Hz quality 800
 Timecounters tick every 10.000 msec
 ad2: FAILURE - SET_MULTI status=51<READY,DSC,ERROR> error=4<ABORTED>
 ad2: 3847MB <ASUS-PHISON OB SSD TST2.04P> at ata1-master UDMA66
 ad3: FAILURE - SET_MULTI status=51<READY,DSC,ERROR> error=4<ABORTED>
 ad3: 15391MB <ASUS-PHISON SSD TST2.04P> at ata1-slave UDMA66
 hdac0: HDA Codec #0: Realtek ALC662
 pcm0: <HDA Realtek ALC662 PCM #0 Analog> at cad 0 nid 1 on hdac0
 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
 (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
 (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0
 (probe0:umass-sim0:0:0:0): Medium not present
 (probe0:umass-sim0:0:0:0): Unretryable error
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: <USB2.0 CardReader SD0 0100> Removable Direct Access SCSI-0 device 
 da0: 40.000MB/s transfers
 da0: Attempt to query device size failed: NOT READY, Medium not present
 Trying to mount root from ufs:/dev/ad2s1a
 ath0: link state changed to UP
 
 
 
 ath0@pci0:1:0:0:	class=0x020000 card=0x10261a3b chip=0x001c168c rev=0x01 hdr=0x00
     vendor     = 'Atheros Communications Inc.'
     device     = 'AR5006 family 802.11abg Wireless NIC'
     class      = network
     subclass   = ethernet
 
 
 	matthias

From: Bruce Simpson <bms@incunabulum.net>
To: Matthias Apitz <matthias.apitz@oclc.org>
Cc: bug-followup@FreeBSD.org, freebsd-net@FreeBSD.org
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP
 or IP does not work
Date: Tue, 17 Mar 2009 10:39:32 +0000

 Matthias Apitz wrote:
 > as requested the output of dmesg(1) and the ath0 related part of
 > 'pciconf -lv'; pls note also that the Wifi works fine in general, i.e.
 > with the AP in my office (WPA) and in my home (WEP);
 >   
 
 Is this an ASUS Eee PC? If so, which model is it? It looks like a 901.
 
 I tested OK with the 701. Sam said that there may be models of ath(4) 
 requiring further changes
 to be back-ported from -CURRENT, this could well be one of them.
 
 cheers
 BMS

From: Matthias Apitz <guru@unixarea.de>
To: Bruce Simpson <bms@incunabulum.net>
Cc: Matthias Apitz <matthias.apitz@oclc.org>, freebsd-net@freebsd.org,
        bug-followup@freebsd.org
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP or IP does not work
Date: Tue, 17 Mar 2009 11:45:48 +0100

 El da Tuesday, March 17, 2009 a las 10:39:32AM +0000, Bruce Simpson escribi:
 
 > Matthias Apitz wrote:
 > >as requested the output of dmesg(1) and the ath0 related part of
 > >'pciconf -lv'; pls note also that the Wifi works fine in general, i.e.
 > >with the AP in my office (WPA) and in my home (WEP);
 > >  
 > 
 > Is this an ASUS Eee PC? If so, which model is it? It looks like a 901.
 
 It is an Asus EeePC 900, not the 901.
 
 > I tested OK with the 701. Sam said that there may be models of ath(4) 
 > requiring further changes
 > to be back-ported from -CURRENT, this could well be one of them.
 
 as I said the Wifi works in all places, but not with this special AP
 (while a Nokia cellphone can associate and DHCP without problems);
 
 let me know if you need more info;
 
 Thx
 
 	matthias
 -- 
 Matthias Apitz
 Manager Technical Support - OCLC GmbH
 Gruenwalder Weg 28g - 82041 Oberhaching - Germany
 t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
 e <matthias.apitz@oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/

From: "Sean C. Farley" <scf@FreeBSD.org>
To: Matthias Apitz <guru@unixarea.de>
Cc: Bruce Simpson <bms@incunabulum.net>, freebsd-net@FreeBSD.org,
        Matthias Apitz <matthias.apitz@oclc.org>, bug-followup@FreeBSD.org
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP,	but DHCP
 or IP does not work
Date: Tue, 17 Mar 2009 11:55:32 -0500 (CDT)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
 
 --56599777-302749604-1237308518=:51892
 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-15; format=flowed
 Content-Transfer-Encoding: 8BIT
 Content-ID: <alpine.BSF.2.00.0903171149121.51892@thor.farley.org>
 
 On Tue, 17 Mar 2009, Matthias Apitz wrote:
 
 > El da Tuesday, March 17, 2009 a las 10:39:32AM +0000, Bruce Simpson escribi:
 >
 >> Matthias Apitz wrote:
 >>> as requested the output of dmesg(1) and the ath0 related part of 
 >>> 'pciconf -lv'; pls note also that the Wifi works fine in general, 
 >>> i.e. with the AP in my office (WPA) and in my home (WEP);
 >>>
 >>
 >> Is this an ASUS Eee PC? If so, which model is it? It looks like a 
 >> 901.
 >
 > It is an Asus EeePC 900, not the 901.
 >
 >> I tested OK with the 701. Sam said that there may be models of ath(4) 
 >> requiring further changes to be back-ported from -CURRENT, this could 
 >> well be one of them.
 >
 > as I said the Wifi works in all places, but not with this special AP 
 > (while a Nokia cellphone can associate and DHCP without problems);
 >
 > let me know if you need more info;
 
 Is the AP made by Aruba Networks?
 
 On RELENG_7, I needed a newer version (v0.5.11 instead of v0.5.10) of 
 wpa_supplicant for it to associate correctly.  With v0.5.10, I could see 
 DHCP requests from my laptop but no responses.  This is the patch I am 
 using currently:
 http://people.freebsd.org/~scf/wpa_supplicant-0.5.11-RELENG_7.patch
 
 Note:  sam@ updated HEAD to v0.5.11 then to the v0.6.x series.
 
 Sean
 -- 
 scf@FreeBSD.org
 --56599777-302749604-1237308518=:51892--

From: Sam Leffler <sam@freebsd.org>
To: "Sean C. Farley" <scf@freebsd.org>
Cc: Matthias Apitz <guru@unixarea.de>,
        Matthias Apitz <matthias.apitz@oclc.org>, freebsd-net@freebsd.org,
        Bruce Simpson <bms@incunabulum.net>, bug-followup@freebsd.org
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP
 or IP does not work
Date: Tue, 17 Mar 2009 11:56:24 -0700

 Sean C. Farley wrote:
 > On Tue, 17 Mar 2009, Matthias Apitz wrote:
 >
 >> El da Tuesday, March 17, 2009 a las 10:39:32AM +0000, Bruce Simpson 
 >> escribi:
 >>
 >>> Matthias Apitz wrote:
 >>>> as requested the output of dmesg(1) and the ath0 related part of 
 >>>> 'pciconf -lv'; pls note also that the Wifi works fine in general, 
 >>>> i.e. with the AP in my office (WPA) and in my home (WEP);
 >>>>
 >>>
 >>> Is this an ASUS Eee PC? If so, which model is it? It looks like a 901.
 >>
 >> It is an Asus EeePC 900, not the 901.
 >>
 >>> I tested OK with the 701. Sam said that there may be models of 
 >>> ath(4) requiring further changes to be back-ported from -CURRENT, 
 >>> this could well be one of them.
 >>
 >> as I said the Wifi works in all places, but not with this special AP 
 >> (while a Nokia cellphone can associate and DHCP without problems);
 >>
 >> let me know if you need more info;
 >
 > Is the AP made by Aruba Networks?
 >
 > On RELENG_7, I needed a newer version (v0.5.11 instead of v0.5.10) of 
 > wpa_supplicant for it to associate correctly.  With v0.5.10, I could 
 > see DHCP requests from my laptop but no responses.  This is the patch 
 > I am using currently:
 > http://people.freebsd.org/~scf/wpa_supplicant-0.5.11-RELENG_7.patch
 >
 > Note:  sam@ updated HEAD to v0.5.11 then to the v0.6.x series.
 
 His setup is static key wep; not wpa so I don't think wpa_supplicant is 
 the issue.
 
 Matthias, your tcpdump of the dhclient packets isn't usable; please try:
 
 tcpdump -i ath0 -n -y IEEE802_11_RADIO
 
 I reviewed the driver to the code in HEAD and the only difference in the 
 crypto area should not matter in this case.  It's possible wme is 
 somehow enabled and causing problems but the ifconfig output doesn't 
 indicate that.
 
 If you can find out the model of ap that might be helpful.  
 Unfortunately the best thing to try is HEAD.
 
     Sam
 

From: Bruce M Simpson <bms@incunabulum.net>
To: Matthias Apitz <guru@unixarea.de>
Cc: bug-followup@freebsd.org, Sam Leffler <sam@freebsd.org>, 
 freebsd-net@freebsd.org, "Sean C. Farley" <scf@freebsd.org>
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP
 or IP does not work
Date: Mon, 23 Mar 2009 18:44:42 +0000

 Matthias Apitz wrote:
 > I went today evening with my EeePC and CURRENT on USB key
 > to that Greek restaurant; DHCP does not get IP in CURRENT either;
 > this is somehow good news, isn't it :-)
 >   
 
 This may be orthogonal, but:
     A lab colleague and I have been seeing a sporadic problem where the 
 ath0 exhibits the symptoms of being disassociated from its AP. We are 
 running RELENG_7 on the EeePC 701 since the open source HAL merge.
     In the behaviour we're seeing, we don't see any problem with the 
 initial dhclient run, the ath0 just seems to get disassociated within 
 5-10 minutes of associating.
 
 If we leave 'ping <ap-ip-address>' running in the background, we don't 
 see this problem.
 
     We have yet to produce a tcpdump to catch it 'in the act' and 
 observe the DLT_IEEE80211 traffic when it actually happens, I have only 
 seen the symptoms. The AP does not show the EeePC units as being 
 associated any more at this point, but ath0 still shows 'status: 
 associated'. The AP involved is a Netgear WG602 V2, and is running the 
 vendor's firmware.
 
 I'll try to get set up with 'tcpdump -y ieee802_11' from initial boot 
 (including dhcp and anything we bump into).
 
 cheers
 BMS

From: Sam Leffler <sam@freebsd.org>
To: Matthias Apitz <guru@unixarea.de>
Cc: bug-followup@freebsd.org, freebsd-net@freebsd.org
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP
 or IP does not work
Date: Mon, 23 Mar 2009 12:12:04 -0700

 Matthias Apitz wrote:
 > I went today evening with my EeePC and CURRENT on USB key
 > to that Greek restaurant; DHCP does not get IP in CURRENT either;
 > this is somehow good news, isn't it :-)
 >
 > below are some information concerning the AP, ifconfig ...
 > the output of the tcpdump is on my server as
 > http://www.unixarea.de/ath-current.txt
 > let me know if you need more information;
 >
 > HIH
 >
 > 	matthias
 >
 >
 > info about AP:
 >     Siemens Gigaset SE 505 dsl/cable
 >     S30853-S1006-R107-3
 >     (handwritten label says: "this is no DSL router; IP 192.168.2.1")
 >     as DSL-modem some Fritz!Box is connected to this box
 >     http://reviews.cnet.com/routers/siemens-gigaset-se505-dsl/1707-3319_7-30799508.html
 >
 >
 > # uname -a
 > FreeBSD tinyCurrent 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sun Mar 22 11:47:41 CET 2009     root@rebelion.Sisis.de:/usr/src/myHEAD/obj/usr/src/myHEAD/src/sys/GENERIC  i386
 >
 > # ifconfig -a
 > ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
 > 	ether 00:15:af:b2:ae:e6
 > 	media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
 > 	status: associated
 > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
 > 	options=3<RXCSUM,TXCSUM>
 > 	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
 > 	inet6 ::1 prefixlen 128 
 > 	inet 127.0.0.1 netmask 0xff000000 
 > wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
 > 	ether 00:15:af:b2:ae:e6
 > 	inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
 > 	media: IEEE 802.11 Wireless Ethernet DS/5.5Mbps mode 11g
 > 	status: associated
 > 	ssid ConnectionPoint channel 11 (2462 Mhz 11g) bssid 00:01:e3:0e:97:99
 > 	regdomain 96 indoor ecm authmode OPEN privacy ON deftxkey 1
 > 	wepkey 1:104-bit txpower 20 bmiss 7 scanvalid 450 bgscan
 > 	bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
 > 	wme burst roaming MANUAL
 >
 >
 >
 > # tcpdump -n -i ath0 -y IEEE802_11_RADIO
 > 17:56:24.647835 436598375373us tsft 1.0 Mb/s -80dB signal -96dB noise antenna 1 [0x00000012] Beacon (ConnectionPoint) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS[|802.11]
 > 17:56:24.750225 436598477774us tsft 1.0 Mb/s -81dB signal -96dB noise antenna 1 [0x00000012] Beacon (ConnectionPoint) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS[|802.11]
 > 17:56:24.852621 436598580174us tsft 1.0 Mb/s -79dB signal -96dB noise antenna 1 [0x00000012] Beacon (ConnectionPoint) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS[|802.11]
 > 17:56:24.955019 436598682572us tsft 1.0 Mb/s -80dB signal -96dB noise antenna 1 [0x00000012] Beacon (ConnectionPoint) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS[|802.11]
 > ...
 >
 > full log see: http://www.unixarea.de/ath-current.txt
 >
 >
 >   
 If you have the raw pcap capture please provide a url to it.
 
  From the log it appears you're sending+receiving wep-encrypted frames.  
 They keyid is the same and since you're receiving frames I have to 
 assume the key matter is correct as otherwise the h/w would drop the 
 frame.  You can verify this by feeding the key into wireshark to check 
 if the frame contents make sense.
 
 I'm out of ideas.  About the only thing I can suggest is you setup a 
 different ap w/ the same wep key and see if things work.  If so then you 
 know it's something this ap is doing.  I can't recall when I last tested 
 wep on HEAD but I'm pretty sure it works.  I will re-test that when I 
 get a chance.
 
     Sam
 

From: Matthias Apitz <guru@unixarea.de>
To: bug-followup@freebsd.org
Cc: Sam Leffler <sam@freebsd.org>, freebsd-net@freebsd.org,
        Bruce Simpson <bms@incunabulum.net>,
        "Sean C. Farley" <scf@freebsd.org>
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP or IP does not work
Date: Mon, 23 Mar 2009 19:23:11 +0100

 I went today evening with my EeePC and CURRENT on USB key
 to that Greek restaurant; DHCP does not get IP in CURRENT either;
 this is somehow good news, isn't it :-)
 
 below are some information concerning the AP, ifconfig ...
 the output of the tcpdump is on my server as
 http://www.unixarea.de/ath-current.txt
 let me know if you need more information;
 
 HIH
 
 	matthias
 
 
 info about AP:
     Siemens Gigaset SE 505 dsl/cable
     S30853-S1006-R107-3
     (handwritten label says: "this is no DSL router; IP 192.168.2.1")
     as DSL-modem some Fritz!Box is connected to this box
     http://reviews.cnet.com/routers/siemens-gigaset-se505-dsl/1707-3319_7-30799508.html
 
 
 # uname -a
 FreeBSD tinyCurrent 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sun Mar 22 11:47:41 CET 2009     root@rebelion.Sisis.de:/usr/src/myHEAD/obj/usr/src/myHEAD/src/sys/GENERIC  i386
 
 # ifconfig -a
 ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
 	ether 00:15:af:b2:ae:e6
 	media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
 	status: associated
 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
 	options=3<RXCSUM,TXCSUM>
 	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
 	inet6 ::1 prefixlen 128 
 	inet 127.0.0.1 netmask 0xff000000 
 wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
 	ether 00:15:af:b2:ae:e6
 	inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
 	media: IEEE 802.11 Wireless Ethernet DS/5.5Mbps mode 11g
 	status: associated
 	ssid ConnectionPoint channel 11 (2462 Mhz 11g) bssid 00:01:e3:0e:97:99
 	regdomain 96 indoor ecm authmode OPEN privacy ON deftxkey 1
 	wepkey 1:104-bit txpower 20 bmiss 7 scanvalid 450 bgscan
 	bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
 	wme burst roaming MANUAL
 
 
 
 # tcpdump -n -i ath0 -y IEEE802_11_RADIO
 17:56:24.647835 436598375373us tsft 1.0 Mb/s -80dB signal -96dB noise antenna 1 [0x00000012] Beacon (ConnectionPoint) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS[|802.11]
 17:56:24.750225 436598477774us tsft 1.0 Mb/s -81dB signal -96dB noise antenna 1 [0x00000012] Beacon (ConnectionPoint) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS[|802.11]
 17:56:24.852621 436598580174us tsft 1.0 Mb/s -79dB signal -96dB noise antenna 1 [0x00000012] Beacon (ConnectionPoint) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS[|802.11]
 17:56:24.955019 436598682572us tsft 1.0 Mb/s -80dB signal -96dB noise antenna 1 [0x00000012] Beacon (ConnectionPoint) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] ESS[|802.11]
 ...
 
 full log see: http://www.unixarea.de/ath-current.txt

From: John Hay <jhay@meraka.org.za>
To: Bruce M Simpson <bms@incunabulum.net>
Cc: Matthias Apitz <guru@unixarea.de>, freebsd-net@freebsd.org,
	Sam Leffler <sam@freebsd.org>, "Sean C. Farley" <scf@freebsd.org>,
	bug-followup@freebsd.org
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP or IP does not work
Date: Mon, 23 Mar 2009 22:40:50 +0200

 On Mon, Mar 23, 2009 at 06:44:42PM +0000, Bruce M Simpson wrote:
 > Matthias Apitz wrote:
 > >I went today evening with my EeePC and CURRENT on USB key
 > >to that Greek restaurant; DHCP does not get IP in CURRENT either;
 > >this is somehow good news, isn't it :-)
 > >  
 > 
 > This may be orthogonal, but:
 >    A lab colleague and I have been seeing a sporadic problem where the 
 > ath0 exhibits the symptoms of being disassociated from its AP. We are 
 > running RELENG_7 on the EeePC 701 since the open source HAL merge.
 >    In the behaviour we're seeing, we don't see any problem with the 
 > initial dhclient run, the ath0 just seems to get disassociated within 
 > 5-10 minutes of associating.
 > 
 > If we leave 'ping <ap-ip-address>' running in the background, we don't 
 > see this problem.
 > 
 
 I found doing a -bgscan before it happens, make it not happen. I now
 have -bgscan in my rc.conf.
 
 John
 -- 
 John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org

From: Matthias Apitz <guru@unixarea.de>
To: Sam Leffler <sam@freebsd.org>
Cc: bug-followup@freebsd.org, freebsd-net@freebsd.org
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP or IP does not work
Date: Mon, 23 Mar 2009 22:42:07 +0100

 El da Monday, March 23, 2009 a las 12:12:04PM -0700, Sam Leffler escribi:
 
 > If you have the raw pcap capture please provide a url to it.
 
 I have to capture it and will provide it;
 
 > 
 > From the log it appears you're sending+receiving wep-encrypted frames.  
 > They keyid is the same and since you're receiving frames I have to 
 > assume the key matter is correct as otherwise the h/w would drop the 
 > frame.  You can verify this by feeding the key into wireshark to check 
 > if the frame contents make sense.
 > 
 > I'm out of ideas.  About the only thing I can suggest is you setup a 
 > different ap w/ the same wep key and see if things work.  If so then you 
 > know it's something this ap is doing.  I can't recall when I last tested 
 > wep on HEAD but I'm pretty sure it works.  I will re-test that when I 
 > get a chance.
 > 
 >    Sam
 
 WEP in general works; my AP at home is configured as WEP and the entries
 in wpa_supplicant.conf are nearly the same, only the key differs:
 
 # my home
 #
 network={
         ssid="tarara"
         scan_ssid=0
         key_mgmt=NONE
         wep_tx_keyidx=0
         wep_key0=xxxxxxxxxx
 }
 
 # Restaurante Odyssee (2007-11-18)
 #
 network={
         ssid="ConnectionPoint"
         scan_ssid=0
         key_mgmt=NONE
         wep_tx_keyidx=0
         wep_key0=xxxxxxxxxxxxxxxxxxxx
 }
 
 but I will configure another AP to also use the same wep_key0, if you
 think that the problem could depend on the key itself;
 
 and I will check if I could get somewhere this model of AP for a test;
 
 	matthias

From: Bruce M Simpson <bms@incunabulum.net>
To: John Hay <jhay@meraka.org.za>
Cc: Matthias Apitz <guru@unixarea.de>, freebsd-net@freebsd.org, 
 Sam Leffler <sam@freebsd.org>,
 "Sean C. Farley" <scf@freebsd.org>, bug-followup@freebsd.org
Subject: Re: kern/132722: [ath] Wifi ath0 associates fine with AP, but DHCP
 or IP does not work
Date: Tue, 24 Mar 2009 01:08:33 +0000

 John Hay wrote:
 > I found doing a -bgscan before it happens, make it not happen. I now
 > have -bgscan in my rc.conf.
 >   
 
 That's exactly the workaround I needed. Thanks John.
 
 As Sam points out, the root fix is probably already in HEAD; it would be 
 nice to find time to backport, but this works for us for now as a 
 workaround (we are just using ath0 as a STA for testing in the lab at 
 the moment, it is likely we will use hostap later).
 
 cheers,
 BMS
Responsible-Changed-From-To: freebsd-net->freebsd-wireless 
Responsible-Changed-By: adrian 
Responsible-Changed-When: Mon Apr 11 11:43:53 UTC 2011 
Responsible-Changed-Why:  
punt to freebsd-wiereless 


http://www.freebsd.org/cgi/query-pr.cgi?pr=132722 
>Unformatted:
