ath11k: avoid WMM param truncation
authorKarthikeyan Periyasamy <periyasa@codeaurora.org>
Wed, 27 Nov 2019 16:29:58 +0000 (18:29 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 Nov 2019 07:35:37 +0000 (09:35 +0200)
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

index 6a04680..4a518d4 100644 (file)
@@ -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;
 };