ath9k: correct ath9k_hw_set_interrupts
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 21 Feb 2011 14:02:41 +0000 (15:02 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 25 Feb 2011 20:21:50 +0000 (15:21 -0500)
commit385918cc6af74e2b7ae10ec3ccaeea9a83e8e43e
treea0b7d95f9d2a790cc28ae87c4d655feb5637e1fa
parent79ae79c9aa496309ecc96a2c00b5427735dd3370
ath9k: correct ath9k_hw_set_interrupts

Commit 4df3071ebd92ef7115b409da64d0eb405d24a631 "ath9k_hw: optimize
interrupt mask changes", changed ath9k_hw_set_interrupts function to
enable interrupts regardless of function argument, what could possibly
be wrong. Correct that behaviour and check "ints" arguments before
enabling interrupts, also disable interrupts if ints do not have
ATH9K_INT_GLOBAL flag set.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/mac.c