aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorThomas Pedersen <thomas@adapt-ip.com>2020-09-21 19:28:11 -0700
committerJohannes Berg <johannes.berg@intel.com>2020-09-28 13:56:28 +0200
commit89b8c02a35f5c6199f76a839b7a7e450f8185f1b (patch)
tree0807b5a8c3d0b2f9a5d45dbb5894ad56f48e81c3 /net/mac80211/tx.c
parentmac80211: encode listen interval for S1G (diff)
downloadlinux-dev-89b8c02a35f5c6199f76a839b7a7e450f8185f1b.tar.xz
linux-dev-89b8c02a35f5c6199f76a839b7a7e450f8185f1b.zip
mac80211: don't calculate duration for S1G
For now just skip the duration calculation for frames transmitted on the S1G band and avoid a warning. Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com> Link: https://lore.kernel.org/r/20200922022818.15855-11-thomas@adapt-ip.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 141ed8c5aa7e..8ba10a48ded4 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -82,6 +82,10 @@ static __le16 ieee80211_duration(struct ieee80211_tx_data *tx,
erp = txrate->flags & IEEE80211_RATE_ERP_G;
+ /* device is expected to do this */
+ if (sband->band == NL80211_BAND_S1GHZ)
+ return 0;
+
/*
* data and mgmt (except PS Poll):
* - during CFP: 32768