]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ab6fad8283741634833c62c55192aa7a6d6c9e2
treeacfa30d0f0568457e70317dd8315a141dda2e6eb
parent143cee6da96188084d712974eb0fc965d13b99e1
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