blob: de32d4e14e97e731d8ddefce8b07ee82761b362e [file] [log] [blame]
developer83ad30d2023-09-12 17:28:06 +08001From 41a81ced950b4f97331f964b8ad67b773b5dcd7a Mon Sep 17 00:00:00 2001
developer8fc8cbe2023-06-09 09:29:57 +08002From: Lian Chen <lian.chen@mediatek.com>
3Date: Wed, 7 Jun 2023 15:30:34 +0800
developer83ad30d2023-09-12 17:28:06 +08004Subject: [PATCH 15/21] support configurable addba resp time.
developer8fc8cbe2023-06-09 09:29:57 +08005
6---
7 net/mac80211/agg-tx.c | 8 +++++++-
8 1 file changed, 7 insertions(+), 1 deletion(-)
9
10diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
developer83ad30d2023-09-12 17:28:06 +080011index 80cd642..7f66e69 100644
developer8fc8cbe2023-06-09 09:29:57 +080012--- a/net/mac80211/agg-tx.c
13+++ b/net/mac80211/agg-tx.c
14@@ -16,10 +16,16 @@
15 #include <linux/slab.h>
16 #include <linux/export.h>
17 #include <net/mac80211.h>
18+#include <linux/moduleparam.h>
19 #include "ieee80211_i.h"
20 #include "driver-ops.h"
21 #include "wme.h"
22
23+static int addba_resp_wait_count = 2;
24+module_param(addba_resp_wait_count, int, 0644);
25+MODULE_PARM_DESC(addba_resp_wait_count,
26+ "Number of ADDBA_RESP_INTERVAL to wait for addba response");
27+
28 /**
29 * DOC: TX A-MPDU aggregation
30 *
developer83ad30d2023-09-12 17:28:06 +080031@@ -466,7 +472,7 @@ static void ieee80211_send_addba_with_timeout(struct sta_info *sta,
32 lockdep_assert_held(&sta->ampdu_mlme.mtx);
developer8fc8cbe2023-06-09 09:29:57 +080033
34 /* activate the timer for the recipient's addBA response */
35- mod_timer(&tid_tx->addba_resp_timer, jiffies + ADDBA_RESP_INTERVAL);
36+ mod_timer(&tid_tx->addba_resp_timer, jiffies + addba_resp_wait_count * ADDBA_RESP_INTERVAL);
37 ht_dbg(sdata, "activated addBA response timer on %pM tid %d\n",
38 sta->sta.addr, tid);
39
40--
developer83ad30d2023-09-12 17:28:06 +0800412.39.2
developer8fc8cbe2023-06-09 09:29:57 +080042