diff options
author | Johannes Berg <johannes.berg@intel.com> | 2023-08-28 13:59:47 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-09-11 11:27:20 +0200 |
commit | e3208fb739e522fcae7cb8342ac82ebb45d32a2b (patch) | |
tree | 347918542535bcba85303379db006fe7eeb5e6aa /net/mac80211/pm.c | |
parent | wifi: mac80211: move TDLS work to wiphy work (diff) | |
download | linux-e3208fb739e522fcae7cb8342ac82ebb45d32a2b.tar.xz linux-e3208fb739e522fcae7cb8342ac82ebb45d32a2b.zip |
wifi: mac80211: move key tailroom work to wiphy work
This way we hold the wiphy mutex there, as a step towards
removing some of the additional locks we have.
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/pm.c')
-rw-r--r-- | net/mac80211/pm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c index 10eb72b9b994..e52dbf7d14fb 100644 --- a/net/mac80211/pm.c +++ b/net/mac80211/pm.c @@ -161,7 +161,8 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) break; } - flush_delayed_work(&sdata->dec_tailroom_needed_wk); + wiphy_delayed_work_flush(local->hw.wiphy, + &sdata->dec_tailroom_needed_wk); drv_remove_interface(local, sdata); } |