diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 6d79fbc50f73..c61360ee9b84 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -1293,6 +1293,12 @@ int ieee80211_reconfig(struct ieee80211_local *local) } } + /* add back keys */ + list_for_each_entry(sdata, &local->interfaces, list) + if (ieee80211_sdata_running(sdata)) + ieee80211_enable_keys(sdata); + + wake_up: /* * Clear the WLAN_STA_BLOCK_BA flag so new aggregation * sessions can be established after a resume. @@ -1314,12 +1320,6 @@ int ieee80211_reconfig(struct ieee80211_local *local) mutex_unlock(&local->sta_mtx); } - /* add back keys */ - list_for_each_entry(sdata, &local->interfaces, list) - if (ieee80211_sdata_running(sdata)) - ieee80211_enable_keys(sdata); - - wake_up: ieee80211_wake_queues_by_reason(hw, IEEE80211_QUEUE_STOP_REASON_SUSPEND); @@ -1735,4 +1735,4 @@ bool ieee80211_suspending(struct ieee80211_hw *hw) return local->quiescing; } -EXPORT_SYMBOL(ieee80211_suspending); \ No newline at end of file +EXPORT_SYMBOL(ieee80211_suspending);