diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-09-24 17:59:46 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-09-26 20:34:38 +0300 |
commit | 029cd0370241641eb70235d205aa0b90c84dce44 (patch) | |
tree | e5f1f4317256057406e07a8c90825ddf167c8c29 /drivers/net/wireless/ath/ath9k/init.c | |
parent | bdb06cbf77cb01911694cc9076ffa8196b7b9b61 (diff) | |
download | linux-029cd0370241641eb70235d205aa0b90c84dce44.tar.xz |
ath9k: declare required extra tx headroom
ath9k inserts padding between the 802.11 header and the data area (to
align it). Since it didn't declare this extra required headroom, this
led to some nasty issues like randomly dropped packets in some setups.
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 57f95f2dca5b..90eb75012e4f 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -880,6 +880,7 @@ static void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) hw->max_rate_tries = 10; hw->sta_data_size = sizeof(struct ath_node); hw->vif_data_size = sizeof(struct ath_vif); + hw->extra_tx_headroom = 4; hw->wiphy->available_antennas_rx = BIT(ah->caps.max_rxchains) - 1; hw->wiphy->available_antennas_tx = BIT(ah->caps.max_txchains) - 1; |