blob: eb85ebce22a57c5856a463d4dcc03b13d09897d6 [file] [log] [blame]
developer66e89bc2024-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>
developer66e89bc2024-04-23 14:50:01 +080010---
11 net/mac80211/mlme.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
15index a27682e..84ea805 100644
16--- a/net/mac80211/mlme.c
17+++ b/net/mac80211/mlme.c
18@@ -7202,7 +7202,7 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata)
19 */
20 if (status_acked) {
21 ifmgd->assoc_data->timeout =
22- jiffies + IEEE80211_ASSOC_TIMEOUT_SHORT;
23+ jiffies + IEEE80211_ASSOC_TIMEOUT_SHORT * 4;
24 run_again(sdata, ifmgd->assoc_data->timeout);
25 } else {
26 ifmgd->assoc_data->timeout = jiffies - 1;
27--
282.39.2
29