Subject: kern/34118: Atheros driver in AP mode causes kernel panic when client moves in/out of range
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <groy@qnx.com>
List: netbsd-bugs
Date: 07/31/2006 17:25:00
>Number:         34118
>Category:       kern
>Synopsis:       Atheros driver in AP mode causes kernel panic when client moves in/out of range
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 31 17:25:00 +0000 2006
>Originator:     Gilles Roy
>Release:        current
>Organization:
>Environment:
NetBSD 3.99.23
>Description:
I am running an Atheros card in access point mode, bridging traffic to Ethernet. When a client who is currently connected moves out of range, then back in range, if there is traffic on the link the driver will hit a KASSERT statement and cause a kernel panic.

The appears to be a problem several other OS's (they all use the same code base)

FreeBSD:
http://tog.net/crashdumps/crashdump3

Linux MadWifi:
http://madwifi.org/ticket/162

>How-To-Repeat:

1) Set the atheros card in AP mode
2) Create a bridge interface
3) Add the ath0 and a wired Ethernet to the bridge
4) Bring up the ath0, the bridge and the wired Ethernet interface
5) Have a client (laptop) connect to the AP
6) Pingflood the client from a host on the LAN
7) Walk out of range with the client/laptop and then come back in range


>Fix: