android_kernel_motorola_sm6225/drivers/net/wireless/ath
Pavel Roskin 152d530d9e ath9k: remove ah->mask_reg, it's never used properly
ah->mask_reg was used to hold different data throughout the driver.
ath9k_hw_init_interrupt_masks() used it to save the value written to
AR_IMR.  ath9k_hw_set_interrupts() used it to hold the interrupt mask as
defined in enum ath9k_int.  Those masks differ in many bits.

Use ah->imask instead of ah->mask_reg in ath9k_hw_set_interrupts() and
ath9k_hw_updatetxtriglevel().  That's what the code was meant to do.
ah->imask is initialized in ath9k_start(), so we don't need to
initialize it from ah->mask_reg.

Once it's done, ah->mask_reg becomes write-only, so it's replaced with a
local variable in ath9k_hw_init_interrupt_masks().

Signed-off-by: Pavel Roskin <proski@gnu.org>
Reported-by: Julia Lawall <julia@diku.dk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-04-06 16:55:08 -04:00
..
ar9170 ath: fix coding style/readability in ath/ar9170 2010-04-06 16:55:07 -04:00
ath5k ath5k: add capability flag for phyerror counters 2010-03-31 14:39:10 -04:00
ath9k ath9k: remove ah->mask_reg, it's never used properly 2010-04-06 16:55:08 -04:00
ath.h ath9k: fix access to freed data on unload 2010-02-01 15:40:09 -05:00
debug.c
debug.h ath9k_htc: Support for AR9271 chipset. 2010-03-23 16:50:17 -04:00
hw.c Net: wireless: ath: fix macros coding style issue in hw.c 2010-04-06 16:51:04 -04:00
Kconfig ath9k_htc: Support for AR9271 chipset. 2010-03-23 16:50:17 -04:00
main.c
Makefile
reg.h
regd.c ath: fix code readability in regd.c 2010-04-06 16:51:04 -04:00
regd.h
regd_common.h