diff options
author | David S. Miller <davem@davemloft.net> | 2009-08-29 02:06:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-29 02:06:05 -0400 |
commit | b7f1d43a2ba1b63abbb1dcd966ab1edb9f62f636 (patch) | |
tree | 9507b9d129ea8d7598d79f4b5674865483c7f00b /net/mac80211/pm.c | |
parent | 6c9888532bb540cb692f51f1d34fe9344eed5a0d (diff) | |
parent | ad43f8bfb7b9a6a8b800cdad24c4a62180a5eb3d (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'net/mac80211/pm.c')
-rw-r--r-- | net/mac80211/pm.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c index a5d2f1fb4417..e535f1c988fe 100644 --- a/net/mac80211/pm.c +++ b/net/mac80211/pm.c | |||
@@ -107,17 +107,8 @@ int __ieee80211_suspend(struct ieee80211_hw *hw) | |||
107 | } | 107 | } |
108 | 108 | ||
109 | /* stop hardware - this must stop RX */ | 109 | /* stop hardware - this must stop RX */ |
110 | if (local->open_count) { | 110 | if (local->open_count) |
111 | ieee80211_led_radio(local, false); | 111 | ieee80211_stop_device(local); |
112 | drv_stop(local); | ||
113 | } | ||
114 | |||
115 | /* | ||
116 | * flush again, in case driver queued work -- it | ||
117 | * shouldn't be doing (or cancel everything in the | ||
118 | * stop callback) that but better safe than sorry. | ||
119 | */ | ||
120 | flush_workqueue(local->workqueue); | ||
121 | 112 | ||
122 | local->suspended = true; | 113 | local->suspended = true; |
123 | /* need suspended to be visible before quiescing is false */ | 114 | /* need suspended to be visible before quiescing is false */ |