All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath11k: Fix nss value to get proper rate_code for peer fixed rate
@ 2019-06-04 11:36 Maharaja Kennadyrajan
  2019-06-06 16:53 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Maharaja Kennadyrajan @ 2019-06-04 11:36 UTC (permalink / raw)
  To: ath11k; +Cc: Maharaja Kennadyrajan

The rate_code is not proper when the peer fixed rate is
set by the user via the set bitrate command.
The rate_code needs the nss values as {0, 1, 2, 3}.
Hence fixing the nss value in this patch.

Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index cb0de8e2aa60..871f7da8ba21 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -2300,7 +2300,7 @@ ath11k_mac_set_peer_vht_fixed_rate(struct ath11k_vif *arvif,
 		   "Setting Fixed VHT Rate for peer %pM. Device will not switch to any other selected rates",
 		   sta->addr);
 
-	rate_code = ATH11K_HW_RATE_CODE(vht_rate, nss,
+	rate_code = ATH11K_HW_RATE_CODE(vht_rate, nss - 1,
 					WMI_RATE_PREAMBLE_VHT);
 	ret = ath11k_wmi_set_peer_param(ar, sta->addr,
 					arvif->vdev_id,
-- 
2.21.0


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

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

end of thread, other threads:[~2019-06-06 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-04 11:36 [PATCH] ath11k: Fix nss value to get proper rate_code for peer fixed rate Maharaja Kennadyrajan
2019-06-06 16:53 ` 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.