]> git.karo-electronics.de Git - linux-beck.git/commit
ath9k: clean up hardware code for beacon handling
authorMohammed Shafi Shajakhan <mshajakhan@atheros.com>
Thu, 9 Dec 2010 16:18:54 +0000 (21:48 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 13 Dec 2010 20:23:28 +0000 (15:23 -0500)
commitf33fdcf1b3a02fb92971a577d194ec6c579374af
tree434f96f3b49b0b16dd01c2ee084833428d6339f3
parent01123e233193a544c85b622e1690f44532052c5b
ath9k: clean up hardware code for beacon handling

The registers TBTT_TIMER ,DMA_BEACON_ALERT ,NEXT_SWBA are need to be
configured only for AP and IBSS mode.

SWBA register is used for generating software interrupts so that beacon
frames will be created by the software.DMA beacon alert register is
to indicate the hardware to DMA the contents of beacon buffer to PCU buffer
and TBTT to start transmitting the packet buffer to the base band.
Clearly these things are not needed for station/monitor mode so
remove configuring them.

Cc: doug dahlby <ddahlby@atheros.com>
Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c