mac80211: Use the right headroom size for mesh mgmt frames
Use local->tx_headroom instad of local->hw.extra_tx_headroom.
local->tx_headroom is the max of hw.extra_tx_headroom required by the
driver and the headroom required by mac80211 for status reporting. On
drivers where hw.extra_tx_headroom is smaller than what mac80211
requires (e.g. ath5k), we would not reserve sufficient buffer space to
report tx status.
Also, don't reserve local->tx_headroom + local->hw.extra_tx_headroom.
Reported-by: Simon Morgenthaler <firstname.lastname@example.org>
Reported-by: Kai Scharwies <email@example.com>
Signed-off-by: Javier Cardona <firstname.lastname@example.org>
Signed-off-by: John W. Linville <email@example.com>
2 files changed