summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSurabhi Vishnoi <svishnoi@codeaurora.org>2018-01-29 18:24:40 +0530
committerSurabhi Vishnoi <svishnoi@codeaurora.org>2018-01-29 22:46:56 +0530
commit04f969d4bdf69e13ac1ab2ce2f404ddefbb8577b (patch)
treec1b1d7f1ee7462ca23bd215165b9df4ae0b9f32d
parent9f2420dd351618cc5609a75877e890130da2a291 (diff)
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 <svishnoi@codeaurora.org>
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi-tlv.c3
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi-tlv.h2
2 files changed, 4 insertions, 1 deletions
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;