Skip to content

Commit 7c70fee

Browse files
sara-segrumbach
authored andcommitted
iwlwifi: mvm: extend time event duration
Before authentication, we start a time event during which we wait for a beacon in order to sync our timers. If we didn't hear the beacon during this time - we abandon the connection. However, in congested environment, it was observed we might not hear beacons in that time slot. Extend the time event to give the connection a better chance. Signed-off-by: Sara Sharon <[email protected]> Signed-off-by: Emmanuel Grumbach <[email protected]>
1 parent 30d915c commit 7c70fee

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,10 +2556,8 @@ static void iwl_mvm_mac_mgd_prepare_tx(struct ieee80211_hw *hw,
25562556
struct ieee80211_vif *vif)
25572557
{
25582558
struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
2559-
u32 duration = min(IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS,
2560-
200 + vif->bss_conf.beacon_int);
2561-
u32 min_duration = min(IWL_MVM_TE_SESSION_PROTECTION_MIN_TIME_MS,
2562-
100 + vif->bss_conf.beacon_int);
2559+
u32 duration = IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS;
2560+
u32 min_duration = IWL_MVM_TE_SESSION_PROTECTION_MIN_TIME_MS;
25632561

25642562
if (WARN_ON_ONCE(vif->bss_conf.assoc))
25652563
return;

drivers/net/wireless/intel/iwlwifi/mvm/time-event.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
* needed by the driver.
116116
*/
117117

118-
#define IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS 500
118+
#define IWL_MVM_TE_SESSION_PROTECTION_MAX_TIME_MS 600
119119
#define IWL_MVM_TE_SESSION_PROTECTION_MIN_TIME_MS 400
120120

121121
/**

0 commit comments

Comments
 (0)