Skip to content

Commit

Permalink
iwl4965: set power mode early
Browse files Browse the repository at this point in the history
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.

Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Aug 2, 2013
1 parent 11a4582 commit eca396d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/iwlegacy/4965-mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -5334,6 +5334,9 @@ il4965_alive_start(struct il_priv *il)

il->active_rate = RATES_MASK;

il_power_update_mode(il, true);
D_INFO("Updated power mode\n");

if (il_is_associated(il)) {
struct il_rxon_cmd *active_rxon =
(struct il_rxon_cmd *)&il->active;
Expand Down Expand Up @@ -5364,9 +5367,6 @@ il4965_alive_start(struct il_priv *il)
D_INFO("ALIVE processing complete.\n");
wake_up(&il->wait_command_queue);

il_power_update_mode(il, true);
D_INFO("Updated power mode\n");

return;

restart:
Expand Down

0 comments on commit eca396d

Please sign in to comment.