diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-06-24 15:14:26 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-07-15 11:43:15 +0200 |
commit | 8c7c6b581987dda035c73661cf83973a02a055d8 (patch) | |
tree | 5a8655d448c9e3940616ab01b0f581256ebe9aa0 /net/mac80211/mlme.c | |
parent | a3b8008dc1421a6f1d0d92cfc1352d729f6756c1 (diff) | |
download | linux-8c7c6b581987dda035c73661cf83973a02a055d8.tar.gz linux-8c7c6b581987dda035c73661cf83973a02a055d8.tar.bz2 linux-8c7c6b581987dda035c73661cf83973a02a055d8.zip |
wifi: mac80211: expect powersave handling in driver for MLO
In MLO, expect the driver fully handles powersave handling,
including tracking whether or not a beacon was received,
the DTIM period, etc.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index f8be05804e59..5400b3e567fa 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1786,6 +1786,7 @@ static void ieee80211_change_ps(struct ieee80211_local *local) static bool ieee80211_powersave_allowed(struct ieee80211_sub_if_data *sdata) { + struct ieee80211_local *local = sdata->local; struct ieee80211_if_managed *mgd = &sdata->u.mgd; struct sta_info *sta = NULL; bool authorized = false; @@ -1802,7 +1803,8 @@ static bool ieee80211_powersave_allowed(struct ieee80211_sub_if_data *sdata) if (mgd->flags & IEEE80211_STA_CONNECTION_POLL) return false; - if (!sdata->deflink.u.mgd.have_beacon) + if (!(local->hw.wiphy->flags & WIPHY_FLAG_SUPPORTS_MLO) && + !sdata->deflink.u.mgd.have_beacon) return false; rcu_read_lock(); |