summaryrefslogtreecommitdiff
path: root/net/mac80211/tdls.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2023-06-06 15:49:28 +0300
committerJohannes Berg <johannes.berg@intel.com>2023-06-07 20:53:22 +0300
commit1444f58931ef5227532cf5436bb55c1dd511d9a2 (patch)
treee8ff33eb275ac2cda980007d91383489e3b4f6ed /net/mac80211/tdls.c
parenta3df43b16fc49213ab4b925711d4725e1e2f2305 (diff)
downloadlinux-1444f58931ef5227532cf5436bb55c1dd511d9a2.tar.xz
wifi: mac80211: use wiphy work for SMPS
SMPS requests are per link, and currently there's a potential deadlock with canceling. Use the new wiphy work to handle SMPS instead, so that the cancel cannot deadlock. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tdls.c')
-rw-r--r--net/mac80211/tdls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/tdls.c b/net/mac80211/tdls.c
index b255f3b5bf01..52c47674a554 100644
--- a/net/mac80211/tdls.c
+++ b/net/mac80211/tdls.c
@@ -1431,8 +1431,8 @@ int ieee80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev,
}
if (ret == 0)
- ieee80211_queue_work(&sdata->local->hw,
- &sdata->deflink.u.mgd.request_smps_work);
+ wiphy_work_queue(sdata->local->hw.wiphy,
+ &sdata->deflink.u.mgd.request_smps_work);
mutex_unlock(&local->mtx);
sdata_unlock(sdata);