* [PATCH] mac80211: add HE support to ieee80211_calculate_rx_timestamp
@ 2020-02-04 15:06 John Crispin
2020-02-10 13:45 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: John Crispin @ 2020-02-04 15:06 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless, Miles Hu, John Crispin
From: Miles Hu <milehu@codeaurora.org>
The RX timestamp was not calculated for HE yet. This patch adds the
missing case clause.
Signed-off-by: Miles Hu <milehu@codeaurora.org>
Tested-by: John Crispin <john@phrozen.org>
---
net/mac80211/util.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 780df3e9092e..876f2d92347b 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -3242,6 +3242,13 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local,
if (status->enc_flags & RX_ENC_FLAG_SHORT_GI)
ri.flags |= RATE_INFO_FLAGS_SHORT_GI;
break;
+ case RX_ENC_HE:
+ ri.flags |= RATE_INFO_FLAGS_HE_MCS;
+ ri.mcs = status->rate_idx;
+ ri.nss = status->nss;
+ if (status->enc_flags & RX_ENC_FLAG_SHORT_GI)
+ ri.flags |= RATE_INFO_FLAGS_SHORT_GI;
+ break;
default:
WARN_ON(1);
/* fall through */
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mac80211: add HE support to ieee80211_calculate_rx_timestamp
2020-02-04 15:06 [PATCH] mac80211: add HE support to ieee80211_calculate_rx_timestamp John Crispin
@ 2020-02-10 13:45 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2020-02-10 13:45 UTC (permalink / raw)
To: John Crispin; +Cc: Johannes Berg, linux-wireless, Miles Hu
John Crispin <john@phrozen.org> writes:
> From: Miles Hu <milehu@codeaurora.org>
>
> The RX timestamp was not calculated for HE yet. This patch adds the
> missing case clause.
>
> Signed-off-by: Miles Hu <milehu@codeaurora.org>
> Tested-by: John Crispin <john@phrozen.org>
John's s-o-b missing.
--
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-02-10 13:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 15:06 [PATCH] mac80211: add HE support to ieee80211_calculate_rx_timestamp John Crispin
2020-02-10 13:45 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.