ath10k: fix ap u-apsd cmd on qca6174 w/ wmi-tlv
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 25 Feb 2015 10:39:36 +0000 (11:39 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sat, 7 Mar 2015 07:54:53 +0000 (09:54 +0200)
The command was truncated so the parameter value
was seen in fw as 0. This caused U-APSD enabled
stations to be misconfigured and mistreated by AP.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/wmi-tlv.c

index 5721d1fc21c76ce67defbdebd9364fd0a31e91cd..138d80a6d3b0dd9a0693c6d3befc403f4cc2d638 100644 (file)
@@ -2035,7 +2035,7 @@ ath10k_wmi_tlv_op_gen_set_ap_ps(struct ath10k *ar, u32 vdev_id, const u8 *mac,
        if (!mac)
                return ERR_PTR(-EINVAL);
 
-       skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
+       skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd));
        if (!skb)
                return ERR_PTR(-ENOMEM);