aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2800usb.c
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2011-03-28 13:30:36 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-04-04 16:20:02 -0400
commitf78987cf8bb740b7a3636c08e003f1976f860cfc (patch)
treef447ca74205caebb7dc32a1bdcbfd128ec245601 /drivers/net/wireless/rt2x00/rt2800usb.c
parent2e7798b7c12bdaab4a4aee76d6d1ab7c986234ac (diff)
downloadkernel_samsung_smdk4412-f78987cf8bb740b7a3636c08e003f1976f860cfc.tar.gz
kernel_samsung_smdk4412-f78987cf8bb740b7a3636c08e003f1976f860cfc.tar.bz2
kernel_samsung_smdk4412-f78987cf8bb740b7a3636c08e003f1976f860cfc.zip
rt2x00: Calculate tx status fifo size instead of hardcoding it
Instead of hardcoding the tx status fifo size as 512 calculate it based on the number of tx queues and the number of entries per queue. Also round the size up to a power of 2 as kfifo would otherwise round it down. On rt2800pci this will increase the kfifo size from 512 bytes to 1024 bytes which is then able to hold the tx status for all entries in all tx queues. Furthermore, if the number of tx queues or tx entries changes in the future (use of the MGMT queue for example) the kfifo size doesn't need to be updated. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800usb.c')
0 files changed, 0 insertions, 0 deletions