Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214281
b: refs/heads/master
c: 85f72bc
h: refs/heads/master
i:
  214279: 4d734cb
v: v3
  • Loading branch information
John W. Linville committed Sep 1, 2010
1 parent 57f6a59 commit 6c48f83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 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: 18145c69349f2ab60c470798f83b3a2639e2a8d9
refs/heads/master: 85f72bc839705294b32b6c16b491c0422f0a71b3
6 changes: 6 additions & 0 deletions trunk/net/mac80211/ieee80211_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,12 @@ int __ieee80211_suspend(struct ieee80211_hw *hw);

static inline int __ieee80211_resume(struct ieee80211_hw *hw)
{
struct ieee80211_local *local = hw_to_local(hw);

WARN(test_bit(SCAN_HW_SCANNING, &local->scanning),
"%s: resume with hardware scan still in progress\n",
wiphy_name(hw->wiphy));

return ieee80211_reconfig(hw_to_local(hw));
}
#else
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/mac80211/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ int __ieee80211_suspend(struct ieee80211_hw *hw)
struct ieee80211_sub_if_data *sdata;
struct sta_info *sta;

ieee80211_scan_cancel(local);
if (unlikely(test_bit(SCAN_SW_SCANNING, &local->scanning)))
ieee80211_scan_cancel(local);

ieee80211_stop_queues_by_reason(hw,
IEEE80211_QUEUE_STOP_REASON_SUSPEND);
Expand Down

0 comments on commit 6c48f83

Please sign in to comment.