diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-06-24 12:15:52 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-07-15 12:43:15 +0300 |
commit | 94ddc3b5aa21c261be277eab8bc80f7520038a34 (patch) | |
tree | 22aa9b01e4d167f86adb0e0a5e8d6fbf31f01b5e /net/mac80211/mlme.c | |
parent | 284b38b6902a7154e3675482418a7b6df47808fe (diff) | |
download | linux-94ddc3b5aa21c261be277eab8bc80f7520038a34.tar.xz |
wifi: mac80211: move ieee80211_request_smps_mgd_work
This function can be static.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 3b00383dbdbd..d4d226436e8d 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -5018,6 +5018,18 @@ void ieee80211_sta_restart(struct ieee80211_sub_if_data *sdata) sdata_unlock(sdata); } +static void ieee80211_request_smps_mgd_work(struct work_struct *work) +{ + struct ieee80211_link_data *link = + container_of(work, struct ieee80211_link_data, + u.mgd.request_smps_work); + + sdata_lock(link->sdata); + __ieee80211_request_smps_mgd(link->sdata, link, + link->u.mgd.driver_smps_mode); + sdata_unlock(link->sdata); +} + /* interface setup */ void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata) { |