From: Michal Kazior Date: Wed, 25 Feb 2015 10:39:36 +0000 (+0100) Subject: ath10k: fix ap u-apsd cmd on qca6174 w/ wmi-tlv X-Git-Tag: v4.2-rc1~130^2~230^2~34^2~97 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4543ab01481f184609226b905d84ef841f993b96;p=karo-tx-linux.git ath10k: fix ap u-apsd cmd on qca6174 w/ wmi-tlv 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index 5721d1fc21c7..138d80a6d3b0 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -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);