blob: ff69c5a74d90f6cd83cf267985d73564fc229e7d [file] [log] [blame]
From 48d97cc83f3098481fbc2a6d38da75e94703708f Mon Sep 17 00:00:00 2001
From: Shayne Chen <shayne.chen@mediatek.com>
Date: Thu, 19 Oct 2023 00:35:11 +0800
Subject: [PATCH 40/61] mtk: mac80211: increase association timeout time
Prevent from sending multiple association requests while AP is already
hanlding the request.
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Change-Id: I5ea21682b2498c73acc88095a665db1a3f7e7302
---
net/mac80211/mlme.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index a27682e..84ea805 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -7202,7 +7202,7 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata)
*/
if (status_acked) {
ifmgd->assoc_data->timeout =
- jiffies + IEEE80211_ASSOC_TIMEOUT_SHORT;
+ jiffies + IEEE80211_ASSOC_TIMEOUT_SHORT * 4;
run_again(sdata, ifmgd->assoc_data->timeout);
} else {
ifmgd->assoc_data->timeout = jiffies - 1;
--
2.39.2