ath9k: reset after PCI FATAL/PERR interrupts
authorSteven Luo <steven@steven676.net>
Sun, 12 Apr 2009 09:57:54 +0000 (02:57 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:54:45 +0000 (16:54 -0400)
commita89bff9a78b2bf51e21a961b473b5be94b22f12e
treecff6dc88649dfa5aa72d92b149387ff66f06fb30
parent2d1f96dd90a20c25243cc3b13e9f21d72f00aba0
ath9k: reset after PCI FATAL/PERR interrupts

ath9k_hw_getisr() doesn't appear to set anything in the status mask for
PCI FATAL or PERR interrupts (AR_INTR_SYNC_HOST1_FATAL/PERR), which
the open-source HAL seems to do.  This means that the card isn't reset
after these interrupts.

This patch seems to fix a problem where the wireless drops out with an
"ath9k: received PCI FATAL interrupt" in dmesg after some time; the
hardware is an AR5416 in an ASUS WL-500W running 2.6.28.7 (OpenWRT) and
compat-wireless 2009-03-31.

Signed-off-by: Steven Luo <steven@steven676.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c