ath9k: fix handling of tx headroom for padding
[15.05/openwrt.git] / package / kernel / mac80211 / patches / 397-ath9k-declare-required-extra-tx-headroom.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Thu, 24 Sep 2015 16:57:37 +0200
3 Subject: [PATCH] ath9k: declare required extra tx headroom
4
5 ath9k inserts padding between the 802.11 header and the data area (to
6 align it). Since it didn't declare this extra required headroom, this
7 led to some nasty issues like randomly dropped packets in some setups.
8
9 Cc: stable@vger.kernel.org
10 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 ---
12
13 --- a/drivers/net/wireless/ath/ath9k/init.c
14 +++ b/drivers/net/wireless/ath/ath9k/init.c
15 @@ -867,6 +867,7 @@ static void ath9k_set_hw_capab(struct at
16         hw->max_rate_tries = 10;
17         hw->sta_data_size = sizeof(struct ath_node);
18         hw->vif_data_size = sizeof(struct ath_vif);
19 +       hw->extra_tx_headroom = 4;
20  
21         hw->wiphy->available_antennas_rx = BIT(ah->caps.max_rxchains) - 1;
22         hw->wiphy->available_antennas_tx = BIT(ah->caps.max_txchains) - 1;