dnsmasq: ensure test and rc order as older than final releases
[openwrt/staging/lynxis.git] / package / kernel / mac80211 / patches / ath / 553-ath9k-dynack-use-authentication-messages-for-late-ac.patch
1 From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
2 Date: Fri, 2 Nov 2018 21:49:55 +0100
3 Subject: [PATCH] ath9k: dynack: use authentication messages for 'late' ack
4
5 In order to properly support dynack in ad-hoc mode running
6 wpa_supplicant, take into account authentication frames for
7 'late ack' detection. This patch has been tested on devices
8 mounted on offshore high-voltage stations connected through
9 ~24Km link
10
11 Reported-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
12 Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
13 Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
14 ---
15
16 --- a/drivers/net/wireless/ath/ath9k/dynack.c
17 +++ b/drivers/net/wireless/ath/ath9k/dynack.c
18 @@ -187,7 +187,8 @@ void ath_dynack_sample_tx_ts(struct ath_
19 /* late ACK */
20 if (ts->ts_status & ATH9K_TXERR_XRETRY) {
21 if (ieee80211_is_assoc_req(hdr->frame_control) ||
22 - ieee80211_is_assoc_resp(hdr->frame_control)) {
23 + ieee80211_is_assoc_resp(hdr->frame_control) ||
24 + ieee80211_is_auth(hdr->frame_control)) {
25 ath_dbg(common, DYNACK, "late ack\n");
26 ath9k_hw_setslottime(ah, (LATEACK_TO - 3) / 2);
27 ath9k_hw_set_ack_timeout(ah, LATEACK_TO);