developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 1 | From 48d97cc83f3098481fbc2a6d38da75e94703708f Mon Sep 17 00:00:00 2001 |
| 2 | From: Shayne Chen <shayne.chen@mediatek.com> |
| 3 | Date: Thu, 19 Oct 2023 00:35:11 +0800 |
| 4 | Subject: [PATCH 40/61] mtk: mac80211: increase association timeout time |
| 5 | |
| 6 | Prevent from sending multiple association requests while AP is already |
| 7 | hanlding the request. |
| 8 | |
| 9 | Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> |
| 10 | Change-Id: I5ea21682b2498c73acc88095a665db1a3f7e7302 |
| 11 | --- |
| 12 | net/mac80211/mlme.c | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c |
| 16 | index 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 | -- |
| 29 | 2.39.2 |
| 30 | |