rt2x00: Properly request tx headroom for alignment operations.
authorGertjan van Wingerde <gwingerde@gmail.com>
Wed, 30 Dec 2009 10:36:30 +0000 (11:36 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:23 +0000 (15:55 -0700)
commit99e9e4b6bc9ea7e1324064b18530ffe8002dfec5
tree39da7325ce90ea80fb2191f14de87ae7d003912e
parentd5b0b3dec7dd9993edad5280555d078690839bfe
rt2x00: Properly request tx headroom for alignment operations.

commit 7a4a77b7771164d61ce702a588067d1e1d66db7c upstream.

Current rt2x00 drivers may result in a "ieee80211_tx_status: headroom too
small" error message when a frame needs to be properly aligned before
transmitting it.
This is because the space needed to ensure proper alignment isn't
requested from mac80211.
Fix this by adding sufficient amount of alignment space to the amount
of headroom requested for TX frames.

Reported-by: David Ellingsworth <david@identd.dyndns.org>
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <ivdoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00dev.c