Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313983
b: refs/heads/master
c: 76ed2ed
h: refs/heads/master
i:
  313981: 39d232b
  313979: d1c274e
  313975: e3ef032
  313967: 76e8055
  313951: 51936a9
  313919: b2aabe5
  313855: f842579
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jun 5, 2012
1 parent b06dd26 commit db36d0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: ff110c8f93cb7e2bd83f52a176e33c3573163f0a
refs/heads/master: 76ed2edd5b2143856915560accf54ca9c1a4c792
11 changes: 7 additions & 4 deletions trunk/drivers/net/wireless/iwlwifi/iwl-mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,6 @@ int iwlagn_mac_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
if (ret)
goto error;

device_set_wakeup_enable(priv->trans->dev, true);

iwl_trans_wowlan_suspend(priv->trans);

goto out;
Expand Down Expand Up @@ -485,8 +483,6 @@ static int iwlagn_mac_resume(struct ieee80211_hw *hw)

priv->wowlan = false;

device_set_wakeup_enable(priv->trans->dev, false);

iwlagn_prepare_restart(priv);

memset((void *)&ctx->active, 0, sizeof(ctx->active));
Expand All @@ -501,6 +497,12 @@ static int iwlagn_mac_resume(struct ieee80211_hw *hw)
return 1;
}

static void iwlagn_mac_set_wakeup(struct ieee80211_hw *hw, bool enabled)
{
struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw);

device_set_wakeup_enable(priv->trans->dev, enabled);
}
#endif

void iwlagn_mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
Expand Down Expand Up @@ -1581,6 +1583,7 @@ struct ieee80211_ops iwlagn_hw_ops = {
#ifdef CONFIG_PM_SLEEP
.suspend = iwlagn_mac_suspend,
.resume = iwlagn_mac_resume,
.set_wakeup = iwlagn_mac_set_wakeup,
#endif
.add_interface = iwlagn_mac_add_interface,
.remove_interface = iwlagn_mac_remove_interface,
Expand Down

0 comments on commit db36d0b

Please sign in to comment.