ath9k: allocate tx and rx status information on stack
authorFelix Fietkau <nbd@openwrt.org>
Tue, 30 Mar 2010 03:14:23 +0000 (20:14 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 31 Mar 2010 18:46:41 +0000 (14:46 -0400)
commit29bffa96e9bef4fb84740a49e93d5bd6ca126bac
treeacfa30d0f0568457e70317dd8315a141dda2e6eb
parent8e6f5aa250d6013ec0d66f9f45f376678d3fc4ab
ath9k: allocate tx and rx status information on stack

ath_tx_status and ath_rx_status data are only necessary for a short
time, until they have been processed and converted into mac80211 data
structures.
Because of that, it makes no sense to keep them tied to the DMA
descriptor, that only wastes precious memory.
This patch allocates the data on stack in the functions that call the
conversion functions from ath9k_hw.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/mac.h
drivers/net/wireless/ath/ath9k/recv.c
drivers/net/wireless/ath/ath9k/xmit.c