Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327687
b: refs/heads/master
c: 40503f7
h: refs/heads/master
i:
  327685: 4ced8d6
  327683: 78d8c55
  327679: 9dd685f
v: v3
  • Loading branch information
Amit Beka authored and Johannes Berg committed Aug 21, 2012
1 parent 3f87e9c commit 504f910
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 289e5501c3141191dd830957f1d764d3dc14a54f
refs/heads/master: 40503f7b48260a91ab65a4f8b00a2c6f004fa807
9 changes: 7 additions & 2 deletions trunk/drivers/net/wireless/iwlwifi/dvm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,8 @@ void iwl_down(struct iwl_priv *priv)
* No race since we hold the mutex here and a new one
* can't come in at this time.
*/
ieee80211_remain_on_channel_expired(priv->hw);
if (priv->ucode_loaded && priv->cur_ucode != IWL_UCODE_INIT)
ieee80211_remain_on_channel_expired(priv->hw);

exit_pending =
test_and_set_bit(STATUS_EXIT_PENDING, &priv->status);
Expand Down Expand Up @@ -994,7 +995,11 @@ static void iwl_bg_restart(struct work_struct *data)
iwlagn_prepare_restart(priv);
mutex_unlock(&priv->mutex);
iwl_cancel_deferred_work(priv);
ieee80211_restart_hw(priv->hw);
if (priv->mac80211_registered)
ieee80211_restart_hw(priv->hw);
else
IWL_ERR(priv,
"Cannot request restart before registrating with mac80211");
} else {
WARN_ON(1);
}
Expand Down

0 comments on commit 504f910

Please sign in to comment.