ath5k: correct packet length in tx descriptors
commitfd6effcaf8a894c0a0f602b943dbc54a170d4418
authorBob Copeland <me@bobcopeland.com>
Fri, 19 Dec 2008 04:23:05 +0000 (18 23:23 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Dec 2008 20:24:02 +0000 (19 15:24 -0500)
tree121c93ef571292b7a9d9e89294ba88f29c75ae3e
parent520eb82076993b7f55ef9b80771d264272e5127b
ath5k: correct packet length in tx descriptors

Packet length calculation (which includes frame check sequence)
should take into account whether we add a pad field or not.
Extract the calculation into a helper and use it in both places.

Changes to desc.c
Changes-licensed-under: ISC

Changes to ath5k.h, base.c
Changes-licensed-under: 3-Clause-BSD

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/ath5k.h
drivers/net/wireless/ath5k/base.c
drivers/net/wireless/ath5k/desc.c