diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-08 00:55:34 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 20:54:41 (GMT) |
commit | 4499b23933b44bf9e56d1a29b51d9a62941f9fa4 (patch) | |
tree | 464d5b3b334341c60644a759a352065a3baf6aaa /net/mac80211 | |
parent | e45d8e534b67580eedd9b4910ccc16d6dd3cceff (diff) | |
download | linux-4499b23933b44bf9e56d1a29b51d9a62941f9fa4.tar.xz |
mac80211: re-upload keys only after telling driver about association
In the normal WPA or RSN case keys are only configured after
associating, so we should do that in that order when resuming
as well. It shouldn't really matter since we do not send any
data at either point, but iwlwifi prefers it this way and it
does seem more natural.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/pm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c index 0273023..2b4c95c 100644 --- a/net/mac80211/pm.c +++ b/net/mac80211/pm.c @@ -127,11 +127,6 @@ int __ieee80211_resume(struct ieee80211_hw *hw) rcu_read_unlock(); - /* add back keys */ - list_for_each_entry(sdata, &local->interfaces, list) - if (netif_running(sdata->dev)) - ieee80211_enable_keys(sdata); - /* setup RTS threshold */ if (local->ops->set_rts_threshold) local->ops->set_rts_threshold(hw, local->rts_threshold); @@ -172,6 +167,11 @@ int __ieee80211_resume(struct ieee80211_hw *hw) } } + /* add back keys */ + list_for_each_entry(sdata, &local->interfaces, list) + if (netif_running(sdata->dev)) + ieee80211_enable_keys(sdata); + ieee80211_wake_queues_by_reason(hw, IEEE80211_QUEUE_STOP_REASON_SUSPEND); |