All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath9k: ar9003_mac: read STBC indicator from rx descriptor
@ 2021-05-17 17:24 Philipp Borgers
  2021-05-30  9:05 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Borgers @ 2021-05-17 17:24 UTC (permalink / raw)
  To: ath9k-devel; +Cc: linux-wireless, Philipp Borgers

The rx descriptor contains a STBC indicator. If the indicator is set the
frame was received with STBC.

Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
---
 drivers/net/wireless/ath/ath9k/ar9003_mac.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
index 76b538942a79..5184a0aacfe2 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
@@ -522,6 +522,8 @@ int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah, struct ath_rx_status *rxs,
 	rxs->rs_moreaggr = (rxsp->status11 & AR_RxMoreAggr) ? 1 : 0;
 	rxs->rs_antenna = (MS(rxsp->status4, AR_RxAntenna) & 0x7);
 	rxs->enc_flags |= (rxsp->status4 & AR_GI) ? RX_ENC_FLAG_SHORT_GI : 0;
+	rxs->enc_flags |=
+		(rxsp->status4 & AR_STBC) ? (1 << RX_ENC_FLAG_STBC_SHIFT) : 0;
 	rxs->bw = (rxsp->status4 & AR_2040) ? RATE_INFO_BW_40 : RATE_INFO_BW_20;
 
 	rxs->evm0 = rxsp->status6;
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ath9k: ar9003_mac: read STBC indicator from rx descriptor
  2021-05-17 17:24 [PATCH] ath9k: ar9003_mac: read STBC indicator from rx descriptor Philipp Borgers
@ 2021-05-30  9:05 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2021-05-30  9:05 UTC (permalink / raw)
  To: Philipp Borgers; +Cc: ath9k-devel, linux-wireless, Philipp Borgers

Philipp Borgers <borgers@mi.fu-berlin.de> wrote:

> The rx descriptor contains a STBC indicator. If the indicator is set the
> frame was received with STBC.
> 
> Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath-next branch of ath.git, thanks.

238ebd8b487b ath9k: ar9003_mac: read STBC indicator from rx descriptor

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20210517172426.15919-1-borgers@mi.fu-berlin.de/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-30  9:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17 17:24 [PATCH] ath9k: ar9003_mac: read STBC indicator from rx descriptor Philipp Borgers
2021-05-30  9:05 ` 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.