From 04f969d4bdf69e13ac1ab2ce2f404ddefbb8577b Mon Sep 17 00:00:00 2001 From: Surabhi Vishnoi Date: Mon, 29 Jan 2018 18:24:40 +0530 Subject: [PATCH] ath10k: Indicate MSDU_ID_NEW_PARTITION support in host cap flags The HL1.0 firmware uses msdu desc_id above 3000 as a reference to indicate tx completion on a different endpoint. Due to this, if the host driver uses more than 3000 msdu desc_id, the tx completion for the msdu with desc_id above 3000 is sent to a different endpoint. Setting the MSDU_ID_NEW_PARTITION host driver capability support in the wmi ready flags indicates to the HL1.0 firmware to change this threshold reference to a higher value. Change-Id: If7bbddb6827bbe2be995c153328611930319d74e Signed-off-by: Surabhi Vishnoi --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 3 ++- drivers/net/wireless/ath/ath10k/wmi-tlv.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index 065adc76c0ec..a0b67f58f035 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -1515,7 +1515,8 @@ static struct sk_buff *ath10k_wmi_tlv_op_gen_init(struct ath10k *ar) cfg->num_ocb_vdevs = __cpu_to_le32(0); cfg->num_ocb_channels = __cpu_to_le32(0); cfg->num_ocb_schedules = __cpu_to_le32(0); - cfg->host_capab = __cpu_to_le32(0); + cfg->host_capab = + __cpu_to_le32(WMI_TLV_TX_MSDU_ID_NEW_PARTITION_SUPPORT); ath10k_wmi_put_host_mem_chunks(ar, chunks); diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.h b/drivers/net/wireless/ath/ath10k/wmi-tlv.h index 85bbc4c209e9..f64311725d7e 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.h +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.h @@ -1254,6 +1254,8 @@ struct wmi_tlv_rdy_ev { __le32 status; } __packed; +#define WMI_TLV_TX_MSDU_ID_NEW_PARTITION_SUPPORT BIT(10) + struct wmi_tlv_resource_config { __le32 num_vdevs; __le32 num_peers; -- 2.11.0