ath11k: fix multicast rate parameter size
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")
Signed-off-by Sven Eckelmann <[email protected]>
--- drivers/net/wireless/ath/ath11k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/mac.c +1 -1
@@ -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
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")Signed-off-by Sven Eckelmann <[email protected]>Signed-off-by Kalle Valo <[email protected]>
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