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)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jan 2010 21:27:42 +0000 (16:27 -0500)
commit7a4a77b7771164d61ce702a588067d1e1d66db7c
tree9cdc685d8c4fcedc140f1a5ae739b03e37e8bf43
parentcf0277e714a0db302a8f80e1b85fd61c32cf00b3
rt2x00: Properly request tx headroom for alignment operations.

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>
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00dev.c