Skip to contentSkip to conversation

ath11k: Fix nss value to get proper rate_code for peer fixed rate

PATCH In review Maharaja Kennadyrajan 2 participants 2 messages Jun 4, 2019 – Jun 6, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: Fix nss value to get proper rate_code for peer fixed rate

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.

---
 drivers/net/wireless/ath/ath11k/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/mac.c +1 -1
index cb0de8e2aa60..871f7da8ba21 100644
@@ -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,
Signature · 7 lines
2.21.0


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 6 lines · 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.

Patch applied to ath.git, thanks.

703350682ff7 ath11k: Fix nss value to get proper rate_code for peer fixed rate

Signature · 9 lines
https://patchwork.kernel.org/patch/10974781/

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


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k