blob: ff69c5a74d90f6cd83cf267985d73564fc229e7d [file] [log] [blame]
developer617abbd2024-04-23 14:50:01 +08001From 48d97cc83f3098481fbc2a6d38da75e94703708f Mon Sep 17 00:00:00 2001
2From: Shayne Chen <shayne.chen@mediatek.com>
3Date: Thu, 19 Oct 2023 00:35:11 +0800
4Subject: [PATCH 40/61] mtk: mac80211: increase association timeout time
5
6Prevent from sending multiple association requests while AP is already
7hanlding the request.
8
9Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
10Change-Id: I5ea21682b2498c73acc88095a665db1a3f7e7302
11---
12 net/mac80211/mlme.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
16index a27682e..84ea805 100644
17--- a/net/mac80211/mlme.c
18+++ b/net/mac80211/mlme.c
19@@ -7202,7 +7202,7 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata)
20 */
21 if (status_acked) {
22 ifmgd->assoc_data->timeout =
23- jiffies + IEEE80211_ASSOC_TIMEOUT_SHORT;
24+ jiffies + IEEE80211_ASSOC_TIMEOUT_SHORT * 4;
25 run_again(sdata, ifmgd->assoc_data->timeout);
26 } else {
27 ifmgd->assoc_data->timeout = jiffies - 1;
28--
292.39.2
30