Commit c2c67924 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by Greg Kroah-Hartman

iwl4965: set power mode early

commit eca396d7 upstream.

If device was put into a sleep and system was restarted or module
reloaded, we have to wake device up before sending other commands.
Otherwise it will fail to start with Microcode error.
Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b45835a8
...@@ -5316,6 +5316,9 @@ il4965_alive_start(struct il_priv *il) ...@@ -5316,6 +5316,9 @@ il4965_alive_start(struct il_priv *il)
il->active_rate = RATES_MASK; il->active_rate = RATES_MASK;
il_power_update_mode(il, true);
D_INFO("Updated power mode\n");
if (il_is_associated(il)) { if (il_is_associated(il)) {
struct il_rxon_cmd *active_rxon = struct il_rxon_cmd *active_rxon =
(struct il_rxon_cmd *)&il->active; (struct il_rxon_cmd *)&il->active;
...@@ -5346,9 +5349,6 @@ il4965_alive_start(struct il_priv *il) ...@@ -5346,9 +5349,6 @@ il4965_alive_start(struct il_priv *il)
D_INFO("ALIVE processing complete.\n"); D_INFO("ALIVE processing complete.\n");
wake_up(&il->wait_command_queue); wake_up(&il->wait_command_queue);
il_power_update_mode(il, true);
D_INFO("Updated power mode\n");
return; return;
restart: restart:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment