linux/drivers/net/wireless/ath/ath9k
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
..
ahb.c ath9k: fix access to freed data on unload 2010-02-01 15:40:09 -05:00
ani.c
ani.h
ath9k.h ath9k: move imask from sc to ah 2010-04-06 16:55:08 -04:00
beacon.c ath9k: move imask from sc to ah 2010-04-06 16:55:08 -04:00
btcoex.c
btcoex.h ath9k: Fix wifi disconnection when collocated bt scan is active 2010-01-22 16:11:32 -05:00
calib.c ath9k_hw: use the skip count for PA calibration on AR9271 2010-03-23 16:50:15 -04:00
calib.h
common.c ath9k: Do not indicate RX_FLAG_DECRYPTED for unprotected frames 2010-03-31 14:46:42 -04:00
common.h ath9k_common: Move RX filter code to ath9k_htc 2010-03-31 14:46:39 -04:00
debug.c ath9k: split out access to rx status information 2010-03-31 14:46:41 -04:00
debug.h ath9k: split out access to rx status information 2010-03-31 14:46:41 -04:00
eeprom_4k.c ath9k_hw: modify the rf control register for ar9271 revision 1.0 2009-10-30 16:50:36 -04:00
eeprom_9287.c
eeprom_def.c
eeprom.c
eeprom.h
gpio.c ath9k: move imask from sc to ah 2010-04-06 16:55:08 -04:00
hif_usb.c ath9k_htc: Simplify RX URB management 2010-03-31 14:46:39 -04:00
hif_usb.h ath9k_htc: Simplify RX URB management 2010-03-31 14:46:39 -04:00
htc_drv_beacon.c ath9k_htc: Support for AR9271 chipset. 2010-03-23 16:50:17 -04:00
htc_drv_init.c ath9k_htc: Fix TKIP encryption 2010-03-31 14:46:41 -04:00
htc_drv_main.c ath9k_htc: Handle TX queue overflow 2010-03-31 14:46:40 -04:00
htc_drv_txrx.c ath9k_htc: Fix TKIP encryption 2010-03-31 14:46:41 -04:00
htc_hst.c ath9k_htc: Fix watchdog pattern parsing 2010-03-31 14:46:39 -04:00
htc_hst.h ath9k_htc: Support for AR9271 chipset. 2010-03-23 16:50:17 -04:00
htc.h ath9k_htc: Handle TX queue overflow 2010-03-31 14:46:40 -04:00
hw.c ath9k: remove ah->mask_reg, it's never used properly 2010-04-06 16:55:08 -04:00
hw.h ath9k: remove ah->mask_reg, it's never used properly 2010-04-06 16:55:08 -04:00
init.c ath9k_hw: fix hardware deinit 2010-03-23 16:50:16 -04:00
initvals.h ath9k_hw: update initialization values for AR9271 2010-03-23 16:50:12 -04:00
Kconfig ath9k_htc: Support for AR9271 chipset. 2010-03-23 16:50:17 -04:00
mac.c ath9k: remove ah->mask_reg, it's never used properly 2010-04-06 16:55:08 -04:00
mac.h ath9k: allocate tx and rx status information on stack 2010-03-31 14:46:41 -04:00
main.c ath9k: move imask from sc to ah 2010-04-06 16:55:08 -04:00
Makefile ath9k_htc: Support for AR9271 chipset. 2010-03-23 16:50:17 -04:00
pci.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2010-02-04 08:58:14 -08:00
phy.c ath9k: Remove a few unused functions 2009-11-18 17:09:12 -05:00
phy.h ath9k: disable RIFS search for AR91xx based chips 2010-02-26 16:59:11 -05:00
rc.c ath9k: fix rate control tx status handling for A-MPDU 2010-03-10 17:44:45 -05:00
rc.h ath9k: rename symbols in enum ath9k_internal_frame_type to avoid confusion 2010-04-06 16:55:08 -04:00
recv.c ath9k: allocate tx and rx status information on stack 2010-03-31 14:46:41 -04:00
reg.h ath9k_hw: add GPIO setup code for AR9271 2010-03-23 16:50:12 -04:00
virtual.c ath9k: rename symbols in enum ath9k_internal_frame_type to avoid confusion 2010-04-06 16:55:08 -04:00
wmi.c ath9k_htc: Support for AR9271 chipset. 2010-03-23 16:50:17 -04:00
wmi.h ath9k_htc: Support for AR9271 chipset. 2010-03-23 16:50:17 -04:00
xmit.c ath9k: rename symbols in enum ath9k_internal_frame_type to avoid confusion 2010-04-06 16:55:08 -04:00