diff mbox series

[06/10] ath11k: avoid WMM param truncation

Message ID 0101016ea762b255-bfbcc96e-cbc5-45a5-8c7f-3509d5ceb5bc-000000@us-west-2.amazonses.com (mailing list archive)
State Accepted
Commit f1d34a01ed547793c223eb3df4849bdb19ff1d22
Delegated to: Kalle Valo
Headers show
Series [01/10] ath11k: Fix htt stats sounding info and pdev cca stats | expand

Commit Message

Kalle Valo Nov. 26, 2019, 11:04 a.m. UTC
From: Karthikeyan Periyasamy <periyasa@codeaurora.org>

In conf_tx() mac operation callback, we are truncating the tx
params cw_min and cw_max due to lower data type cast. so modified
the data type of cwmin and cwmax to avoid the trucation issue.

Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/wmi.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h
index 6a0468094694..4a518d406bc5 100644
--- a/drivers/net/wireless/ath/ath11k/wmi.h
+++ b/drivers/net/wireless/ath/ath11k/wmi.h
@@ -4501,8 +4501,8 @@  struct wmi_wmm_params {
 struct wmi_wmm_params_arg {
 	u8 acm;
 	u8 aifs;
-	u8 cwmin;
-	u8 cwmax;
+	u16 cwmin;
+	u16 cwmax;
 	u16 txop;
 	u8 no_ack;
 };