Skip to contentSkip to conversation

ath11k: fix multicast rate parameter size

PATCH In review Sven Eckelmann 2 participants 2 messages Aug 12, 2019 – Sep 29, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: fix multicast rate parameter size

From: Sven Eckelmann <[email protected]>

The ATH11K_HW_RATE_CODE() macro uses at least 28 bit to encode the parameters. An u8 cannot store all these bits.

Fixes c885aaf227ec ("ath11k: support for multicast rate control")
---
 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 6a3b1a110738..5a65caa019ed 100644
@@ -1586,7 +1586,7 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw,
 	u16 bitrate;
 	int ret = 0;
 	u8 rateidx;
-	u8 rate;
+	u32 rate;
 
 	mutex_lock(&ar->conf_mutex);
 
Signature · 7 lines
2.20.1


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 6 lines · Sven Eckelmann

The ATH11K_HW_RATE_CODE() macro uses at least 28 bit to encode the parameters. An u8 cannot store all these bits.

Fixes c885aaf227ec ("ath11k: support for multicast rate control")

Patch applied to ath11k-bringup branch of ath.git, thanks.

bcd3f5043856 ath11k: fix multicast rate parameter size

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

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


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