aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 50f8c7f47061..ad310050e298 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -644,6 +644,9 @@ static u16 iwl_adjust_beacon_interval(u16 beacon_val)
644 / MAX_UCODE_BEACON_INTERVAL; 644 / MAX_UCODE_BEACON_INTERVAL;
645 new_val = beacon_val / beacon_factor; 645 new_val = beacon_val / beacon_factor;
646 646
647 if (!new_val)
648 new_val = MAX_UCODE_BEACON_INTERVAL;
649
647 return new_val; 650 return new_val;
648} 651}
649 652