Skip to content

Commit f352910

Browse files
Wey-Yi Guylinvjw
authored andcommitted
iwlagn: 5000 do not support idle mode
5000 series has issue supporting power save idle mode: commit 9dc2153 iwlwifi: always support idle mode for agn devices For agn devices, always support idle mode which help power consumption in idle unassociated state. the above changes cause 5000 become not stable when power management is "on" http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2312 Cc: stable@kernel.org raspberrypi#2.6.39, raspberrypi#3.0.0 Reported-by: Devin J Pohly <djpohly+iwl@gmail.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 00898a4 commit f352910

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎drivers/net/wireless/iwlwifi/iwl-5000.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ static struct iwl_base_params iwl5000_base_params = {
365365
.chain_noise_scale = 1000,
366366
.wd_timeout = IWL_LONG_WD_TIMEOUT,
367367
.max_event_log_size = 512,
368+
.no_idle_support = true,
368369
};
369370
static struct iwl_ht_params iwl5000_ht_params = {
370371
.ht_greenfield_support = true,

‎drivers/net/wireless/iwlwifi/iwl-core.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ struct iwl_mod_params {
135135
* @temperature_kelvin: temperature report by uCode in kelvin
136136
* @max_event_log_size: size of event log buffer size for ucode event logging
137137
* @shadow_reg_enable: HW shadhow register bit
138+
* @no_idle_support: do not support idle mode
138139
*/
139140
struct iwl_base_params {
140141
int eeprom_size;
@@ -156,6 +157,7 @@ struct iwl_base_params {
156157
bool temperature_kelvin;
157158
u32 max_event_log_size;
158159
const bool shadow_reg_enable;
160+
const bool no_idle_support;
159161
};
160162
/*
161163
* @advanced_bt_coexist: support advanced bt coexist

‎drivers/net/wireless/iwlwifi/iwl-power.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ static void iwl_power_build_cmd(struct iwl_priv *priv,
349349

350350
if (priv->wowlan)
351351
iwl_static_sleep_cmd(priv, cmd, IWL_POWER_INDEX_5, dtimper);
352-
else if (priv->hw->conf.flags & IEEE80211_CONF_IDLE)
352+
else if (!priv->cfg->base_params->no_idle_support &&
353+
priv->hw->conf.flags & IEEE80211_CONF_IDLE)
353354
iwl_static_sleep_cmd(priv, cmd, IWL_POWER_INDEX_5, 20);
354355
else if (iwl_tt_is_low_power_state(priv)) {
355356
/* in thermal throttling low power state */

0 commit comments

Comments
 (0)