Commit eceb024e authored by Kalle Valo's avatar Kalle Valo

Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git

ath.git patches for v6.2. Major changes:

ath10k

* store WLAN firmware version in SMEM image table
parents 823092a5 7256f287
...@@ -44,6 +44,7 @@ config ATH10K_SNOC ...@@ -44,6 +44,7 @@ config ATH10K_SNOC
tristate "Qualcomm ath10k SNOC support" tristate "Qualcomm ath10k SNOC support"
depends on ATH10K depends on ATH10K
depends on ARCH_QCOM || COMPILE_TEST depends on ARCH_QCOM || COMPILE_TEST
select QCOM_SMEM
select QCOM_SCM select QCOM_SCM
select QCOM_QMI_HELPERS select QCOM_QMI_HELPERS
help help
......
...@@ -1379,7 +1379,7 @@ static void ath10k_process_rx(struct ath10k *ar, struct sk_buff *skb) ...@@ -1379,7 +1379,7 @@ static void ath10k_process_rx(struct ath10k *ar, struct sk_buff *skb)
ath10k_get_tid(hdr, tid, sizeof(tid)), ath10k_get_tid(hdr, tid, sizeof(tid)),
is_multicast_ether_addr(ieee80211_get_DA(hdr)) ? is_multicast_ether_addr(ieee80211_get_DA(hdr)) ?
"mcast" : "ucast", "mcast" : "ucast",
(__le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4, IEEE80211_SEQ_TO_SN(__le16_to_cpu(hdr->seq_ctrl)),
(status->encoding == RX_ENC_LEGACY) ? "legacy" : "", (status->encoding == RX_ENC_LEGACY) ? "legacy" : "",
(status->encoding == RX_ENC_HT) ? "ht" : "", (status->encoding == RX_ENC_HT) ? "ht" : "",
(status->encoding == RX_ENC_VHT) ? "vht" : "", (status->encoding == RX_ENC_VHT) ? "vht" : "",
...@@ -1844,15 +1844,14 @@ static void ath10k_htt_rx_h_csum_offload(struct ath10k_hw_params *hw, ...@@ -1844,15 +1844,14 @@ static void ath10k_htt_rx_h_csum_offload(struct ath10k_hw_params *hw,
} }
static u64 ath10k_htt_rx_h_get_pn(struct ath10k *ar, struct sk_buff *skb, static u64 ath10k_htt_rx_h_get_pn(struct ath10k *ar, struct sk_buff *skb,
u16 offset,
enum htt_rx_mpdu_encrypt_type enctype) enum htt_rx_mpdu_encrypt_type enctype)
{ {
struct ieee80211_hdr *hdr; struct ieee80211_hdr *hdr;
u64 pn = 0; u64 pn = 0;
u8 *ehdr; u8 *ehdr;
hdr = (struct ieee80211_hdr *)(skb->data + offset); hdr = (struct ieee80211_hdr *)skb->data;
ehdr = skb->data + offset + ieee80211_hdrlen(hdr->frame_control); ehdr = skb->data + ieee80211_hdrlen(hdr->frame_control);
if (enctype == HTT_RX_MPDU_ENCRYPT_AES_CCM_WPA2) { if (enctype == HTT_RX_MPDU_ENCRYPT_AES_CCM_WPA2) {
pn = ehdr[0]; pn = ehdr[0];
...@@ -1866,19 +1865,17 @@ static u64 ath10k_htt_rx_h_get_pn(struct ath10k *ar, struct sk_buff *skb, ...@@ -1866,19 +1865,17 @@ static u64 ath10k_htt_rx_h_get_pn(struct ath10k *ar, struct sk_buff *skb,
} }
static bool ath10k_htt_rx_h_frag_multicast_check(struct ath10k *ar, static bool ath10k_htt_rx_h_frag_multicast_check(struct ath10k *ar,
struct sk_buff *skb, struct sk_buff *skb)
u16 offset)
{ {
struct ieee80211_hdr *hdr; struct ieee80211_hdr *hdr;
hdr = (struct ieee80211_hdr *)(skb->data + offset); hdr = (struct ieee80211_hdr *)skb->data;
return !is_multicast_ether_addr(hdr->addr1); return !is_multicast_ether_addr(hdr->addr1);
} }
static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar, static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar,
struct sk_buff *skb, struct sk_buff *skb,
u16 peer_id, u16 peer_id,
u16 offset,
enum htt_rx_mpdu_encrypt_type enctype) enum htt_rx_mpdu_encrypt_type enctype)
{ {
struct ath10k_peer *peer; struct ath10k_peer *peer;
...@@ -1893,16 +1890,16 @@ static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar, ...@@ -1893,16 +1890,16 @@ static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar,
return false; return false;
} }
hdr = (struct ieee80211_hdr *)(skb->data + offset); hdr = (struct ieee80211_hdr *)skb->data;
if (ieee80211_is_data_qos(hdr->frame_control)) if (ieee80211_is_data_qos(hdr->frame_control))
tid = ieee80211_get_tid(hdr); tid = ieee80211_get_tid(hdr);
else else
tid = ATH10K_TXRX_NON_QOS_TID; tid = ATH10K_TXRX_NON_QOS_TID;
last_pn = &peer->frag_tids_last_pn[tid]; last_pn = &peer->frag_tids_last_pn[tid];
new_pn.pn48 = ath10k_htt_rx_h_get_pn(ar, skb, offset, enctype); new_pn.pn48 = ath10k_htt_rx_h_get_pn(ar, skb, enctype);
frag_number = le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG; frag_number = le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG;
seq = (__le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4; seq = IEEE80211_SEQ_TO_SN(__le16_to_cpu(hdr->seq_ctrl));
if (frag_number == 0) { if (frag_number == 0) {
last_pn->pn48 = new_pn.pn48; last_pn->pn48 = new_pn.pn48;
...@@ -2059,13 +2056,11 @@ static void ath10k_htt_rx_h_mpdu(struct ath10k *ar, ...@@ -2059,13 +2056,11 @@ static void ath10k_htt_rx_h_mpdu(struct ath10k *ar,
frag_pn_check = ath10k_htt_rx_h_frag_pn_check(ar, frag_pn_check = ath10k_htt_rx_h_frag_pn_check(ar,
msdu, msdu,
peer_id, peer_id,
0,
enctype); enctype);
if (frag) if (frag)
multicast_check = ath10k_htt_rx_h_frag_multicast_check(ar, multicast_check = ath10k_htt_rx_h_frag_multicast_check(ar,
msdu, msdu);
0);
if (!frag_pn_check || !multicast_check) { if (!frag_pn_check || !multicast_check) {
/* Discard the fragment with invalid PN or multicast DA /* Discard the fragment with invalid PN or multicast DA
...@@ -2824,7 +2819,7 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt, ...@@ -2824,7 +2819,7 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,
hdr_space = ieee80211_hdrlen(hdr->frame_control); hdr_space = ieee80211_hdrlen(hdr->frame_control);
sc = __le16_to_cpu(hdr->seq_ctrl); sc = __le16_to_cpu(hdr->seq_ctrl);
seq = (sc & IEEE80211_SCTL_SEQ) >> 4; seq = IEEE80211_SEQ_TO_SN(sc);
frag = sc & IEEE80211_SCTL_FRAG; frag = sc & IEEE80211_SCTL_FRAG;
sec_index = MS(rx_desc_info, HTT_RX_DESC_HL_INFO_MCAST_BCAST) ? sec_index = MS(rx_desc_info, HTT_RX_DESC_HL_INFO_MCAST_BCAST) ?
......
...@@ -3792,18 +3792,22 @@ static struct pci_driver ath10k_pci_driver = { ...@@ -3792,18 +3792,22 @@ static struct pci_driver ath10k_pci_driver = {
static int __init ath10k_pci_init(void) static int __init ath10k_pci_init(void)
{ {
int ret; int ret1, ret2;
ret = pci_register_driver(&ath10k_pci_driver); ret1 = pci_register_driver(&ath10k_pci_driver);
if (ret) if (ret1)
printk(KERN_ERR "failed to register ath10k pci driver: %d\n", printk(KERN_ERR "failed to register ath10k pci driver: %d\n",
ret); ret1);
ret = ath10k_ahb_init(); ret2 = ath10k_ahb_init();
if (ret) if (ret2)
printk(KERN_ERR "ahb init failed: %d\n", ret); printk(KERN_ERR "ahb init failed: %d\n", ret2);
return ret; if (ret1 && ret2)
return ret1;
/* registered to at least one bus */
return 0;
} }
module_init(ath10k_pci_init); module_init(ath10k_pci_init);
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/net.h> #include <linux/net.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/qcom_scm.h> #include <linux/qcom_scm.h>
#include <linux/soc/qcom/smem.h>
#include <linux/string.h> #include <linux/string.h>
#include <net/sock.h> #include <net/sock.h>
...@@ -22,6 +23,10 @@ ...@@ -22,6 +23,10 @@
#define ATH10K_QMI_CLIENT_ID 0x4b4e454c #define ATH10K_QMI_CLIENT_ID 0x4b4e454c
#define ATH10K_QMI_TIMEOUT 30 #define ATH10K_QMI_TIMEOUT 30
#define SMEM_IMAGE_VERSION_TABLE 469
#define SMEM_IMAGE_TABLE_CNSS_INDEX 13
#define SMEM_IMAGE_VERSION_ENTRY_SIZE 128
#define SMEM_IMAGE_VERSION_NAME_SIZE 75
static int ath10k_qmi_map_msa_permission(struct ath10k_qmi *qmi, static int ath10k_qmi_map_msa_permission(struct ath10k_qmi *qmi,
struct ath10k_msa_mem_info *mem_info) struct ath10k_msa_mem_info *mem_info)
...@@ -536,6 +541,33 @@ int ath10k_qmi_wlan_disable(struct ath10k *ar) ...@@ -536,6 +541,33 @@ int ath10k_qmi_wlan_disable(struct ath10k *ar)
return ath10k_qmi_mode_send_sync_msg(ar, QMI_WLFW_OFF_V01); return ath10k_qmi_mode_send_sync_msg(ar, QMI_WLFW_OFF_V01);
} }
static void ath10k_qmi_add_wlan_ver_smem(struct ath10k *ar, const char *fw_build_id)
{
u8 *table_ptr;
size_t smem_item_size;
const u32 smem_img_idx_wlan = SMEM_IMAGE_TABLE_CNSS_INDEX *
SMEM_IMAGE_VERSION_ENTRY_SIZE;
table_ptr = qcom_smem_get(QCOM_SMEM_HOST_ANY,
SMEM_IMAGE_VERSION_TABLE,
&smem_item_size);
if (IS_ERR(table_ptr)) {
ath10k_err(ar, "smem image version table not found\n");
return;
}
if (smem_img_idx_wlan + SMEM_IMAGE_VERSION_ENTRY_SIZE >
smem_item_size) {
ath10k_err(ar, "smem block size too small: %zu\n",
smem_item_size);
return;
}
strscpy(table_ptr + smem_img_idx_wlan, fw_build_id,
SMEM_IMAGE_VERSION_NAME_SIZE);
}
static int ath10k_qmi_cap_send_sync_msg(struct ath10k_qmi *qmi) static int ath10k_qmi_cap_send_sync_msg(struct ath10k_qmi *qmi)
{ {
struct wlfw_cap_resp_msg_v01 *resp; struct wlfw_cap_resp_msg_v01 *resp;
...@@ -606,6 +638,9 @@ static int ath10k_qmi_cap_send_sync_msg(struct ath10k_qmi *qmi) ...@@ -606,6 +638,9 @@ static int ath10k_qmi_cap_send_sync_msg(struct ath10k_qmi *qmi)
qmi->fw_version, qmi->fw_build_timestamp, qmi->fw_build_id); qmi->fw_version, qmi->fw_build_timestamp, qmi->fw_build_id);
} }
if (resp->fw_build_id_valid)
ath10k_qmi_add_wlan_ver_smem(ar, qmi->fw_build_id);
kfree(resp); kfree(resp);
return 0; return 0;
...@@ -618,7 +653,7 @@ static int ath10k_qmi_host_cap_send_sync(struct ath10k_qmi *qmi) ...@@ -618,7 +653,7 @@ static int ath10k_qmi_host_cap_send_sync(struct ath10k_qmi *qmi)
{ {
struct wlfw_host_cap_resp_msg_v01 resp = {}; struct wlfw_host_cap_resp_msg_v01 resp = {};
struct wlfw_host_cap_req_msg_v01 req = {}; struct wlfw_host_cap_req_msg_v01 req = {};
struct qmi_elem_info *req_ei; const struct qmi_elem_info *req_ei;
struct ath10k *ar = qmi->ar; struct ath10k *ar = qmi->ar;
struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar); struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar);
struct qmi_txn txn; struct qmi_txn txn;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include <linux/types.h> #include <linux/types.h>
#include "qmi_wlfw_v01.h" #include "qmi_wlfw_v01.h"
static struct qmi_elem_info wlfw_ce_tgt_pipe_cfg_s_v01_ei[] = { static const struct qmi_elem_info wlfw_ce_tgt_pipe_cfg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -56,7 +56,7 @@ static struct qmi_elem_info wlfw_ce_tgt_pipe_cfg_s_v01_ei[] = { ...@@ -56,7 +56,7 @@ static struct qmi_elem_info wlfw_ce_tgt_pipe_cfg_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_ce_svc_pipe_cfg_s_v01_ei[] = { static const struct qmi_elem_info wlfw_ce_svc_pipe_cfg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -87,7 +87,7 @@ static struct qmi_elem_info wlfw_ce_svc_pipe_cfg_s_v01_ei[] = { ...@@ -87,7 +87,7 @@ static struct qmi_elem_info wlfw_ce_svc_pipe_cfg_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_shadow_reg_cfg_s_v01_ei[] = { static const struct qmi_elem_info wlfw_shadow_reg_cfg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_2_BYTE, .data_type = QMI_UNSIGNED_2_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -109,7 +109,7 @@ static struct qmi_elem_info wlfw_shadow_reg_cfg_s_v01_ei[] = { ...@@ -109,7 +109,7 @@ static struct qmi_elem_info wlfw_shadow_reg_cfg_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_shadow_reg_v2_cfg_s_v01_ei[] = { static const struct qmi_elem_info wlfw_shadow_reg_v2_cfg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -122,7 +122,7 @@ static struct qmi_elem_info wlfw_shadow_reg_v2_cfg_s_v01_ei[] = { ...@@ -122,7 +122,7 @@ static struct qmi_elem_info wlfw_shadow_reg_v2_cfg_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_memory_region_info_s_v01_ei[] = { static const struct qmi_elem_info wlfw_memory_region_info_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_8_BYTE, .data_type = QMI_UNSIGNED_8_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -153,7 +153,7 @@ static struct qmi_elem_info wlfw_memory_region_info_s_v01_ei[] = { ...@@ -153,7 +153,7 @@ static struct qmi_elem_info wlfw_memory_region_info_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_mem_cfg_s_v01_ei[] = { static const struct qmi_elem_info wlfw_mem_cfg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_8_BYTE, .data_type = QMI_UNSIGNED_8_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -184,7 +184,7 @@ static struct qmi_elem_info wlfw_mem_cfg_s_v01_ei[] = { ...@@ -184,7 +184,7 @@ static struct qmi_elem_info wlfw_mem_cfg_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = { static const struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -225,7 +225,7 @@ static struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = { ...@@ -225,7 +225,7 @@ static struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = { static const struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_8_BYTE, .data_type = QMI_UNSIGNED_8_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -256,7 +256,7 @@ static struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = { ...@@ -256,7 +256,7 @@ static struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_rf_chip_info_s_v01_ei[] = { static const struct qmi_elem_info wlfw_rf_chip_info_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -278,7 +278,7 @@ static struct qmi_elem_info wlfw_rf_chip_info_s_v01_ei[] = { ...@@ -278,7 +278,7 @@ static struct qmi_elem_info wlfw_rf_chip_info_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_rf_board_info_s_v01_ei[] = { static const struct qmi_elem_info wlfw_rf_board_info_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -291,7 +291,7 @@ static struct qmi_elem_info wlfw_rf_board_info_s_v01_ei[] = { ...@@ -291,7 +291,7 @@ static struct qmi_elem_info wlfw_rf_board_info_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_soc_info_s_v01_ei[] = { static const struct qmi_elem_info wlfw_soc_info_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -304,7 +304,7 @@ static struct qmi_elem_info wlfw_soc_info_s_v01_ei[] = { ...@@ -304,7 +304,7 @@ static struct qmi_elem_info wlfw_soc_info_s_v01_ei[] = {
{} {}
}; };
static struct qmi_elem_info wlfw_fw_version_info_s_v01_ei[] = { static const struct qmi_elem_info wlfw_fw_version_info_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -326,7 +326,7 @@ static struct qmi_elem_info wlfw_fw_version_info_s_v01_ei[] = { ...@@ -326,7 +326,7 @@ static struct qmi_elem_info wlfw_fw_version_info_s_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_ind_register_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_ind_register_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -528,7 +528,7 @@ struct qmi_elem_info wlfw_ind_register_req_msg_v01_ei[] = { ...@@ -528,7 +528,7 @@ struct qmi_elem_info wlfw_ind_register_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_ind_register_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_ind_register_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -560,15 +560,15 @@ struct qmi_elem_info wlfw_ind_register_resp_msg_v01_ei[] = { ...@@ -560,15 +560,15 @@ struct qmi_elem_info wlfw_ind_register_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_fw_ready_ind_msg_v01_ei[] = { const struct qmi_elem_info wlfw_fw_ready_ind_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[] = { const struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[] = { const struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -626,7 +626,7 @@ struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[] = { ...@@ -626,7 +626,7 @@ struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_wlan_mode_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_wlan_mode_req_msg_v01_ei[] = {
{ {
.data_type = QMI_SIGNED_4_BYTE_ENUM, .data_type = QMI_SIGNED_4_BYTE_ENUM,
.elem_len = 1, .elem_len = 1,
...@@ -657,7 +657,7 @@ struct qmi_elem_info wlfw_wlan_mode_req_msg_v01_ei[] = { ...@@ -657,7 +657,7 @@ struct qmi_elem_info wlfw_wlan_mode_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_wlan_mode_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_wlan_mode_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -671,7 +671,7 @@ struct qmi_elem_info wlfw_wlan_mode_resp_msg_v01_ei[] = { ...@@ -671,7 +671,7 @@ struct qmi_elem_info wlfw_wlan_mode_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_wlan_cfg_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_wlan_cfg_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -805,7 +805,7 @@ struct qmi_elem_info wlfw_wlan_cfg_req_msg_v01_ei[] = { ...@@ -805,7 +805,7 @@ struct qmi_elem_info wlfw_wlan_cfg_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_wlan_cfg_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_wlan_cfg_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -819,11 +819,11 @@ struct qmi_elem_info wlfw_wlan_cfg_resp_msg_v01_ei[] = { ...@@ -819,11 +819,11 @@ struct qmi_elem_info wlfw_wlan_cfg_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_cap_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_cap_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_cap_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_cap_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -949,7 +949,7 @@ struct qmi_elem_info wlfw_cap_resp_msg_v01_ei[] = { ...@@ -949,7 +949,7 @@ struct qmi_elem_info wlfw_cap_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_bdf_download_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_bdf_download_req_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_1_BYTE, .data_type = QMI_UNSIGNED_1_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1079,7 +1079,7 @@ struct qmi_elem_info wlfw_bdf_download_req_msg_v01_ei[] = { ...@@ -1079,7 +1079,7 @@ struct qmi_elem_info wlfw_bdf_download_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_bdf_download_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_bdf_download_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1093,7 +1093,7 @@ struct qmi_elem_info wlfw_bdf_download_resp_msg_v01_ei[] = { ...@@ -1093,7 +1093,7 @@ struct qmi_elem_info wlfw_bdf_download_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_cal_report_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_cal_report_req_msg_v01_ei[] = {
{ {
.data_type = QMI_DATA_LEN, .data_type = QMI_DATA_LEN,
.elem_len = 1, .elem_len = 1,
...@@ -1133,7 +1133,7 @@ struct qmi_elem_info wlfw_cal_report_req_msg_v01_ei[] = { ...@@ -1133,7 +1133,7 @@ struct qmi_elem_info wlfw_cal_report_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1147,7 +1147,7 @@ struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[] = { ...@@ -1147,7 +1147,7 @@ struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[] = { const struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_SIGNED_4_BYTE_ENUM, .data_type = QMI_SIGNED_4_BYTE_ENUM,
.elem_len = 1, .elem_len = 1,
...@@ -1160,7 +1160,7 @@ struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[] = { ...@@ -1160,7 +1160,7 @@ struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_1_BYTE, .data_type = QMI_UNSIGNED_1_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1272,7 +1272,7 @@ struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[] = { ...@@ -1272,7 +1272,7 @@ struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1286,7 +1286,7 @@ struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[] = { ...@@ -1286,7 +1286,7 @@ struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[] = { const struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_SIGNED_4_BYTE_ENUM, .data_type = QMI_SIGNED_4_BYTE_ENUM,
.elem_len = 1, .elem_len = 1,
...@@ -1308,7 +1308,7 @@ struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[] = { ...@@ -1308,7 +1308,7 @@ struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[] = {
{ {
.data_type = QMI_SIGNED_4_BYTE_ENUM, .data_type = QMI_SIGNED_4_BYTE_ENUM,
.elem_len = 1, .elem_len = 1,
...@@ -1330,7 +1330,7 @@ struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[] = { ...@@ -1330,7 +1330,7 @@ struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1443,7 +1443,7 @@ struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[] = { ...@@ -1443,7 +1443,7 @@ struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_8_BYTE, .data_type = QMI_UNSIGNED_8_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1465,7 +1465,7 @@ struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[] = { ...@@ -1465,7 +1465,7 @@ struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_msa_info_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_msa_info_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1498,11 +1498,11 @@ struct qmi_elem_info wlfw_msa_info_resp_msg_v01_ei[] = { ...@@ -1498,11 +1498,11 @@ struct qmi_elem_info wlfw_msa_info_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_msa_ready_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_msa_ready_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_msa_ready_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_msa_ready_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1516,7 +1516,7 @@ struct qmi_elem_info wlfw_msa_ready_resp_msg_v01_ei[] = { ...@@ -1516,7 +1516,7 @@ struct qmi_elem_info wlfw_msa_ready_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_ini_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_ini_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -1538,7 +1538,7 @@ struct qmi_elem_info wlfw_ini_req_msg_v01_ei[] = { ...@@ -1538,7 +1538,7 @@ struct qmi_elem_info wlfw_ini_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1552,7 +1552,7 @@ struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[] = { ...@@ -1552,7 +1552,7 @@ struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1583,7 +1583,7 @@ struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[] = { ...@@ -1583,7 +1583,7 @@ struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1624,7 +1624,7 @@ struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[] = { ...@@ -1624,7 +1624,7 @@ struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1664,7 +1664,7 @@ struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[] = { ...@@ -1664,7 +1664,7 @@ struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1678,7 +1678,7 @@ struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[] = { ...@@ -1678,7 +1678,7 @@ struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_8_BYTE, .data_type = QMI_UNSIGNED_8_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1691,7 +1691,7 @@ struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[] = { ...@@ -1691,7 +1691,7 @@ struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1705,7 +1705,7 @@ struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[] = { ...@@ -1705,7 +1705,7 @@ struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -1727,7 +1727,7 @@ struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[] = { ...@@ -1727,7 +1727,7 @@ struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1741,7 +1741,7 @@ struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[] = { ...@@ -1741,7 +1741,7 @@ struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -1988,7 +1988,7 @@ struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[] = { ...@@ -1988,7 +1988,7 @@ struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_host_cap_8bit_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_host_cap_8bit_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -2010,7 +2010,7 @@ struct qmi_elem_info wlfw_host_cap_8bit_req_msg_v01_ei[] = { ...@@ -2010,7 +2010,7 @@ struct qmi_elem_info wlfw_host_cap_8bit_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -2024,7 +2024,7 @@ struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[] = { ...@@ -2024,7 +2024,7 @@ struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[] = { const struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_DATA_LEN, .data_type = QMI_DATA_LEN,
.elem_len = 1, .elem_len = 1,
...@@ -2047,7 +2047,7 @@ struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[] = { ...@@ -2047,7 +2047,7 @@ struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[] = {
{ {
.data_type = QMI_DATA_LEN, .data_type = QMI_DATA_LEN,
.elem_len = 1, .elem_len = 1,
...@@ -2070,7 +2070,7 @@ struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[] = { ...@@ -2070,7 +2070,7 @@ struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -2084,15 +2084,15 @@ struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[] = { ...@@ -2084,15 +2084,15 @@ struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_mem_ready_ind_msg_v01_ei[] = { const struct qmi_elem_info wlfw_mem_ready_ind_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[] = { const struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[] = { const struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -2168,11 +2168,11 @@ struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[] = { ...@@ -2168,11 +2168,11 @@ struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -2186,7 +2186,7 @@ struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[] = { ...@@ -2186,7 +2186,7 @@ struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -2208,7 +2208,7 @@ struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[] = { ...@@ -2208,7 +2208,7 @@ struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -2258,7 +2258,7 @@ struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[] = { ...@@ -2258,7 +2258,7 @@ struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[] = { const struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_8_BYTE, .data_type = QMI_UNSIGNED_8_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -2280,7 +2280,7 @@ struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[] = { ...@@ -2280,7 +2280,7 @@ struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[] = { const struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -2294,7 +2294,7 @@ struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[] = { ...@@ -2294,7 +2294,7 @@ struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[] = {
{} {}
}; };
struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[] = { const struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_1_BYTE, .data_type = QMI_UNSIGNED_1_BYTE,
.elem_len = 1, .elem_len = 1,
......
...@@ -215,7 +215,7 @@ struct wlfw_ind_register_req_msg_v01 { ...@@ -215,7 +215,7 @@ struct wlfw_ind_register_req_msg_v01 {
}; };
#define WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN 50 #define WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN 50
extern struct qmi_elem_info wlfw_ind_register_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_ind_register_req_msg_v01_ei[];
struct wlfw_ind_register_resp_msg_v01 { struct wlfw_ind_register_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
...@@ -224,21 +224,21 @@ struct wlfw_ind_register_resp_msg_v01 { ...@@ -224,21 +224,21 @@ struct wlfw_ind_register_resp_msg_v01 {
}; };
#define WLFW_IND_REGISTER_RESP_MSG_V01_MAX_MSG_LEN 18 #define WLFW_IND_REGISTER_RESP_MSG_V01_MAX_MSG_LEN 18
extern struct qmi_elem_info wlfw_ind_register_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_ind_register_resp_msg_v01_ei[];
struct wlfw_fw_ready_ind_msg_v01 { struct wlfw_fw_ready_ind_msg_v01 {
char placeholder; char placeholder;
}; };
#define WLFW_FW_READY_IND_MSG_V01_MAX_MSG_LEN 0 #define WLFW_FW_READY_IND_MSG_V01_MAX_MSG_LEN 0
extern struct qmi_elem_info wlfw_fw_ready_ind_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_fw_ready_ind_msg_v01_ei[];
struct wlfw_msa_ready_ind_msg_v01 { struct wlfw_msa_ready_ind_msg_v01 {
char placeholder; char placeholder;
}; };
#define WLFW_MSA_READY_IND_MSG_V01_MAX_MSG_LEN 0 #define WLFW_MSA_READY_IND_MSG_V01_MAX_MSG_LEN 0
extern struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[];
struct wlfw_pin_connect_result_ind_msg_v01 { struct wlfw_pin_connect_result_ind_msg_v01 {
u8 pwr_pin_result_valid; u8 pwr_pin_result_valid;
...@@ -250,7 +250,7 @@ struct wlfw_pin_connect_result_ind_msg_v01 { ...@@ -250,7 +250,7 @@ struct wlfw_pin_connect_result_ind_msg_v01 {
}; };
#define WLFW_PIN_CONNECT_RESULT_IND_MSG_V01_MAX_MSG_LEN 21 #define WLFW_PIN_CONNECT_RESULT_IND_MSG_V01_MAX_MSG_LEN 21
extern struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[];
struct wlfw_wlan_mode_req_msg_v01 { struct wlfw_wlan_mode_req_msg_v01 {
enum wlfw_driver_mode_enum_v01 mode; enum wlfw_driver_mode_enum_v01 mode;
...@@ -259,14 +259,14 @@ struct wlfw_wlan_mode_req_msg_v01 { ...@@ -259,14 +259,14 @@ struct wlfw_wlan_mode_req_msg_v01 {
}; };
#define WLFW_WLAN_MODE_REQ_MSG_V01_MAX_MSG_LEN 11 #define WLFW_WLAN_MODE_REQ_MSG_V01_MAX_MSG_LEN 11
extern struct qmi_elem_info wlfw_wlan_mode_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_wlan_mode_req_msg_v01_ei[];
struct wlfw_wlan_mode_resp_msg_v01 { struct wlfw_wlan_mode_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_WLAN_MODE_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_WLAN_MODE_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_wlan_mode_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_wlan_mode_resp_msg_v01_ei[];
struct wlfw_wlan_cfg_req_msg_v01 { struct wlfw_wlan_cfg_req_msg_v01 {
u8 host_version_valid; u8 host_version_valid;
...@@ -286,21 +286,21 @@ struct wlfw_wlan_cfg_req_msg_v01 { ...@@ -286,21 +286,21 @@ struct wlfw_wlan_cfg_req_msg_v01 {
}; };
#define WLFW_WLAN_CFG_REQ_MSG_V01_MAX_MSG_LEN 803 #define WLFW_WLAN_CFG_REQ_MSG_V01_MAX_MSG_LEN 803
extern struct qmi_elem_info wlfw_wlan_cfg_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_wlan_cfg_req_msg_v01_ei[];
struct wlfw_wlan_cfg_resp_msg_v01 { struct wlfw_wlan_cfg_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_WLAN_CFG_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_WLAN_CFG_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_wlan_cfg_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_wlan_cfg_resp_msg_v01_ei[];
struct wlfw_cap_req_msg_v01 { struct wlfw_cap_req_msg_v01 {
char placeholder; char placeholder;
}; };
#define WLFW_CAP_REQ_MSG_V01_MAX_MSG_LEN 0 #define WLFW_CAP_REQ_MSG_V01_MAX_MSG_LEN 0
extern struct qmi_elem_info wlfw_cap_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_cap_req_msg_v01_ei[];
struct wlfw_cap_resp_msg_v01 { struct wlfw_cap_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
...@@ -319,7 +319,7 @@ struct wlfw_cap_resp_msg_v01 { ...@@ -319,7 +319,7 @@ struct wlfw_cap_resp_msg_v01 {
}; };
#define WLFW_CAP_RESP_MSG_V01_MAX_MSG_LEN 207 #define WLFW_CAP_RESP_MSG_V01_MAX_MSG_LEN 207
extern struct qmi_elem_info wlfw_cap_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_cap_resp_msg_v01_ei[];
struct wlfw_bdf_download_req_msg_v01 { struct wlfw_bdf_download_req_msg_v01 {
u8 valid; u8 valid;
...@@ -339,14 +339,14 @@ struct wlfw_bdf_download_req_msg_v01 { ...@@ -339,14 +339,14 @@ struct wlfw_bdf_download_req_msg_v01 {
}; };
#define WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN 6182 #define WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN 6182
extern struct qmi_elem_info wlfw_bdf_download_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_bdf_download_req_msg_v01_ei[];
struct wlfw_bdf_download_resp_msg_v01 { struct wlfw_bdf_download_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_BDF_DOWNLOAD_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_BDF_DOWNLOAD_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_bdf_download_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_bdf_download_resp_msg_v01_ei[];
struct wlfw_cal_report_req_msg_v01 { struct wlfw_cal_report_req_msg_v01 {
u32 meta_data_len; u32 meta_data_len;
...@@ -356,21 +356,21 @@ struct wlfw_cal_report_req_msg_v01 { ...@@ -356,21 +356,21 @@ struct wlfw_cal_report_req_msg_v01 {
}; };
#define WLFW_CAL_REPORT_REQ_MSG_V01_MAX_MSG_LEN 28 #define WLFW_CAL_REPORT_REQ_MSG_V01_MAX_MSG_LEN 28
extern struct qmi_elem_info wlfw_cal_report_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_cal_report_req_msg_v01_ei[];
struct wlfw_cal_report_resp_msg_v01 { struct wlfw_cal_report_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_CAL_REPORT_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_CAL_REPORT_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[];
struct wlfw_initiate_cal_download_ind_msg_v01 { struct wlfw_initiate_cal_download_ind_msg_v01 {
enum wlfw_cal_temp_id_enum_v01 cal_id; enum wlfw_cal_temp_id_enum_v01 cal_id;
}; };
#define WLFW_INITIATE_CAL_DOWNLOAD_IND_MSG_V01_MAX_MSG_LEN 7 #define WLFW_INITIATE_CAL_DOWNLOAD_IND_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[];
struct wlfw_cal_download_req_msg_v01 { struct wlfw_cal_download_req_msg_v01 {
u8 valid; u8 valid;
...@@ -388,14 +388,14 @@ struct wlfw_cal_download_req_msg_v01 { ...@@ -388,14 +388,14 @@ struct wlfw_cal_download_req_msg_v01 {
}; };
#define WLFW_CAL_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN 6178 #define WLFW_CAL_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN 6178
extern struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[];
struct wlfw_cal_download_resp_msg_v01 { struct wlfw_cal_download_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_CAL_DOWNLOAD_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_CAL_DOWNLOAD_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[];
struct wlfw_initiate_cal_update_ind_msg_v01 { struct wlfw_initiate_cal_update_ind_msg_v01 {
enum wlfw_cal_temp_id_enum_v01 cal_id; enum wlfw_cal_temp_id_enum_v01 cal_id;
...@@ -403,7 +403,7 @@ struct wlfw_initiate_cal_update_ind_msg_v01 { ...@@ -403,7 +403,7 @@ struct wlfw_initiate_cal_update_ind_msg_v01 {
}; };
#define WLFW_INITIATE_CAL_UPDATE_IND_MSG_V01_MAX_MSG_LEN 14 #define WLFW_INITIATE_CAL_UPDATE_IND_MSG_V01_MAX_MSG_LEN 14
extern struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[];
struct wlfw_cal_update_req_msg_v01 { struct wlfw_cal_update_req_msg_v01 {
enum wlfw_cal_temp_id_enum_v01 cal_id; enum wlfw_cal_temp_id_enum_v01 cal_id;
...@@ -411,7 +411,7 @@ struct wlfw_cal_update_req_msg_v01 { ...@@ -411,7 +411,7 @@ struct wlfw_cal_update_req_msg_v01 {
}; };
#define WLFW_CAL_UPDATE_REQ_MSG_V01_MAX_MSG_LEN 14 #define WLFW_CAL_UPDATE_REQ_MSG_V01_MAX_MSG_LEN 14
extern struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[];
struct wlfw_cal_update_resp_msg_v01 { struct wlfw_cal_update_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
...@@ -429,7 +429,7 @@ struct wlfw_cal_update_resp_msg_v01 { ...@@ -429,7 +429,7 @@ struct wlfw_cal_update_resp_msg_v01 {
}; };
#define WLFW_CAL_UPDATE_RESP_MSG_V01_MAX_MSG_LEN 6181 #define WLFW_CAL_UPDATE_RESP_MSG_V01_MAX_MSG_LEN 6181
extern struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[];
struct wlfw_msa_info_req_msg_v01 { struct wlfw_msa_info_req_msg_v01 {
u64 msa_addr; u64 msa_addr;
...@@ -437,7 +437,7 @@ struct wlfw_msa_info_req_msg_v01 { ...@@ -437,7 +437,7 @@ struct wlfw_msa_info_req_msg_v01 {
}; };
#define WLFW_MSA_INFO_REQ_MSG_V01_MAX_MSG_LEN 18 #define WLFW_MSA_INFO_REQ_MSG_V01_MAX_MSG_LEN 18
extern struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[];
struct wlfw_msa_info_resp_msg_v01 { struct wlfw_msa_info_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
...@@ -446,21 +446,21 @@ struct wlfw_msa_info_resp_msg_v01 { ...@@ -446,21 +446,21 @@ struct wlfw_msa_info_resp_msg_v01 {
}; };
#define WLFW_MSA_INFO_RESP_MSG_V01_MAX_MSG_LEN 37 #define WLFW_MSA_INFO_RESP_MSG_V01_MAX_MSG_LEN 37
extern struct qmi_elem_info wlfw_msa_info_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_msa_info_resp_msg_v01_ei[];
struct wlfw_msa_ready_req_msg_v01 { struct wlfw_msa_ready_req_msg_v01 {
char placeholder; char placeholder;
}; };
#define WLFW_MSA_READY_REQ_MSG_V01_MAX_MSG_LEN 0 #define WLFW_MSA_READY_REQ_MSG_V01_MAX_MSG_LEN 0
extern struct qmi_elem_info wlfw_msa_ready_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_msa_ready_req_msg_v01_ei[];
struct wlfw_msa_ready_resp_msg_v01 { struct wlfw_msa_ready_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_MSA_READY_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_MSA_READY_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_msa_ready_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_msa_ready_resp_msg_v01_ei[];
struct wlfw_ini_req_msg_v01 { struct wlfw_ini_req_msg_v01 {
u8 enablefwlog_valid; u8 enablefwlog_valid;
...@@ -468,14 +468,14 @@ struct wlfw_ini_req_msg_v01 { ...@@ -468,14 +468,14 @@ struct wlfw_ini_req_msg_v01 {
}; };
#define WLFW_INI_REQ_MSG_V01_MAX_MSG_LEN 4 #define WLFW_INI_REQ_MSG_V01_MAX_MSG_LEN 4
extern struct qmi_elem_info wlfw_ini_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_ini_req_msg_v01_ei[];
struct wlfw_ini_resp_msg_v01 { struct wlfw_ini_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_INI_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_INI_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[];
struct wlfw_athdiag_read_req_msg_v01 { struct wlfw_athdiag_read_req_msg_v01 {
u32 offset; u32 offset;
...@@ -484,7 +484,7 @@ struct wlfw_athdiag_read_req_msg_v01 { ...@@ -484,7 +484,7 @@ struct wlfw_athdiag_read_req_msg_v01 {
}; };
#define WLFW_ATHDIAG_READ_REQ_MSG_V01_MAX_MSG_LEN 21 #define WLFW_ATHDIAG_READ_REQ_MSG_V01_MAX_MSG_LEN 21
extern struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[];
struct wlfw_athdiag_read_resp_msg_v01 { struct wlfw_athdiag_read_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
...@@ -494,7 +494,7 @@ struct wlfw_athdiag_read_resp_msg_v01 { ...@@ -494,7 +494,7 @@ struct wlfw_athdiag_read_resp_msg_v01 {
}; };
#define WLFW_ATHDIAG_READ_RESP_MSG_V01_MAX_MSG_LEN 6156 #define WLFW_ATHDIAG_READ_RESP_MSG_V01_MAX_MSG_LEN 6156
extern struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[];
struct wlfw_athdiag_write_req_msg_v01 { struct wlfw_athdiag_write_req_msg_v01 {
u32 offset; u32 offset;
...@@ -504,28 +504,28 @@ struct wlfw_athdiag_write_req_msg_v01 { ...@@ -504,28 +504,28 @@ struct wlfw_athdiag_write_req_msg_v01 {
}; };
#define WLFW_ATHDIAG_WRITE_REQ_MSG_V01_MAX_MSG_LEN 6163 #define WLFW_ATHDIAG_WRITE_REQ_MSG_V01_MAX_MSG_LEN 6163
extern struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[];
struct wlfw_athdiag_write_resp_msg_v01 { struct wlfw_athdiag_write_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_ATHDIAG_WRITE_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_ATHDIAG_WRITE_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[];
struct wlfw_vbatt_req_msg_v01 { struct wlfw_vbatt_req_msg_v01 {
u64 voltage_uv; u64 voltage_uv;
}; };
#define WLFW_VBATT_REQ_MSG_V01_MAX_MSG_LEN 11 #define WLFW_VBATT_REQ_MSG_V01_MAX_MSG_LEN 11
extern struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[];
struct wlfw_vbatt_resp_msg_v01 { struct wlfw_vbatt_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_VBATT_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_VBATT_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[];
struct wlfw_mac_addr_req_msg_v01 { struct wlfw_mac_addr_req_msg_v01 {
u8 mac_addr_valid; u8 mac_addr_valid;
...@@ -533,14 +533,14 @@ struct wlfw_mac_addr_req_msg_v01 { ...@@ -533,14 +533,14 @@ struct wlfw_mac_addr_req_msg_v01 {
}; };
#define WLFW_MAC_ADDR_REQ_MSG_V01_MAX_MSG_LEN 9 #define WLFW_MAC_ADDR_REQ_MSG_V01_MAX_MSG_LEN 9
extern struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[];
struct wlfw_mac_addr_resp_msg_v01 { struct wlfw_mac_addr_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_MAC_ADDR_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_MAC_ADDR_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[];
#define QMI_WLFW_MAX_NUM_GPIO_V01 32 #define QMI_WLFW_MAX_NUM_GPIO_V01 32
struct wlfw_host_cap_req_msg_v01 { struct wlfw_host_cap_req_msg_v01 {
...@@ -574,15 +574,15 @@ struct wlfw_host_cap_req_msg_v01 { ...@@ -574,15 +574,15 @@ struct wlfw_host_cap_req_msg_v01 {
}; };
#define WLFW_HOST_CAP_REQ_MSG_V01_MAX_MSG_LEN 189 #define WLFW_HOST_CAP_REQ_MSG_V01_MAX_MSG_LEN 189
extern struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[];
extern struct qmi_elem_info wlfw_host_cap_8bit_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_host_cap_8bit_req_msg_v01_ei[];
struct wlfw_host_cap_resp_msg_v01 { struct wlfw_host_cap_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_HOST_CAP_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_HOST_CAP_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[];
struct wlfw_request_mem_ind_msg_v01 { struct wlfw_request_mem_ind_msg_v01 {
u32 mem_seg_len; u32 mem_seg_len;
...@@ -590,7 +590,7 @@ struct wlfw_request_mem_ind_msg_v01 { ...@@ -590,7 +590,7 @@ struct wlfw_request_mem_ind_msg_v01 {
}; };
#define WLFW_REQUEST_MEM_IND_MSG_V01_MAX_MSG_LEN 564 #define WLFW_REQUEST_MEM_IND_MSG_V01_MAX_MSG_LEN 564
extern struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[];
struct wlfw_respond_mem_req_msg_v01 { struct wlfw_respond_mem_req_msg_v01 {
u32 mem_seg_len; u32 mem_seg_len;
...@@ -598,28 +598,28 @@ struct wlfw_respond_mem_req_msg_v01 { ...@@ -598,28 +598,28 @@ struct wlfw_respond_mem_req_msg_v01 {
}; };
#define WLFW_RESPOND_MEM_REQ_MSG_V01_MAX_MSG_LEN 260 #define WLFW_RESPOND_MEM_REQ_MSG_V01_MAX_MSG_LEN 260
extern struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[];
struct wlfw_respond_mem_resp_msg_v01 { struct wlfw_respond_mem_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_RESPOND_MEM_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_RESPOND_MEM_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[];
struct wlfw_mem_ready_ind_msg_v01 { struct wlfw_mem_ready_ind_msg_v01 {
char placeholder; char placeholder;
}; };
#define WLFW_MEM_READY_IND_MSG_V01_MAX_MSG_LEN 0 #define WLFW_MEM_READY_IND_MSG_V01_MAX_MSG_LEN 0
extern struct qmi_elem_info wlfw_mem_ready_ind_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_mem_ready_ind_msg_v01_ei[];
struct wlfw_fw_init_done_ind_msg_v01 { struct wlfw_fw_init_done_ind_msg_v01 {
char placeholder; char placeholder;
}; };
#define WLFW_FW_INIT_DONE_IND_MSG_V01_MAX_MSG_LEN 0 #define WLFW_FW_INIT_DONE_IND_MSG_V01_MAX_MSG_LEN 0
extern struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[];
struct wlfw_rejuvenate_ind_msg_v01 { struct wlfw_rejuvenate_ind_msg_v01 {
u8 cause_for_rejuvenation_valid; u8 cause_for_rejuvenation_valid;
...@@ -633,21 +633,21 @@ struct wlfw_rejuvenate_ind_msg_v01 { ...@@ -633,21 +633,21 @@ struct wlfw_rejuvenate_ind_msg_v01 {
}; };
#define WLFW_REJUVENATE_IND_MSG_V01_MAX_MSG_LEN 144 #define WLFW_REJUVENATE_IND_MSG_V01_MAX_MSG_LEN 144
extern struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[];
struct wlfw_rejuvenate_ack_req_msg_v01 { struct wlfw_rejuvenate_ack_req_msg_v01 {
char placeholder; char placeholder;
}; };
#define WLFW_REJUVENATE_ACK_REQ_MSG_V01_MAX_MSG_LEN 0 #define WLFW_REJUVENATE_ACK_REQ_MSG_V01_MAX_MSG_LEN 0
extern struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[];
struct wlfw_rejuvenate_ack_resp_msg_v01 { struct wlfw_rejuvenate_ack_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_REJUVENATE_ACK_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_REJUVENATE_ACK_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[];
struct wlfw_dynamic_feature_mask_req_msg_v01 { struct wlfw_dynamic_feature_mask_req_msg_v01 {
u8 mask_valid; u8 mask_valid;
...@@ -655,7 +655,7 @@ struct wlfw_dynamic_feature_mask_req_msg_v01 { ...@@ -655,7 +655,7 @@ struct wlfw_dynamic_feature_mask_req_msg_v01 {
}; };
#define WLFW_DYNAMIC_FEATURE_MASK_REQ_MSG_V01_MAX_MSG_LEN 11 #define WLFW_DYNAMIC_FEATURE_MASK_REQ_MSG_V01_MAX_MSG_LEN 11
extern struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[];
struct wlfw_dynamic_feature_mask_resp_msg_v01 { struct wlfw_dynamic_feature_mask_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
...@@ -666,7 +666,7 @@ struct wlfw_dynamic_feature_mask_resp_msg_v01 { ...@@ -666,7 +666,7 @@ struct wlfw_dynamic_feature_mask_resp_msg_v01 {
}; };
#define WLFW_DYNAMIC_FEATURE_MASK_RESP_MSG_V01_MAX_MSG_LEN 29 #define WLFW_DYNAMIC_FEATURE_MASK_RESP_MSG_V01_MAX_MSG_LEN 29
extern struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[];
struct wlfw_m3_info_req_msg_v01 { struct wlfw_m3_info_req_msg_v01 {
u64 addr; u64 addr;
...@@ -674,20 +674,20 @@ struct wlfw_m3_info_req_msg_v01 { ...@@ -674,20 +674,20 @@ struct wlfw_m3_info_req_msg_v01 {
}; };
#define WLFW_M3_INFO_REQ_MSG_V01_MAX_MSG_LEN 18 #define WLFW_M3_INFO_REQ_MSG_V01_MAX_MSG_LEN 18
extern struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[];
struct wlfw_m3_info_resp_msg_v01 { struct wlfw_m3_info_resp_msg_v01 {
struct qmi_response_type_v01 resp; struct qmi_response_type_v01 resp;
}; };
#define WLFW_M3_INFO_RESP_MSG_V01_MAX_MSG_LEN 7 #define WLFW_M3_INFO_RESP_MSG_V01_MAX_MSG_LEN 7
extern struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[];
struct wlfw_xo_cal_ind_msg_v01 { struct wlfw_xo_cal_ind_msg_v01 {
u8 xo_cal_data; u8 xo_cal_data;
}; };
#define WLFW_XO_CAL_IND_MSG_V01_MAX_MSG_LEN 4 #define WLFW_XO_CAL_IND_MSG_V01_MAX_MSG_LEN 4
extern struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[]; extern const struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[];
#endif #endif
...@@ -195,6 +195,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { ...@@ -195,6 +195,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
.tcl_ring_retry = true, .tcl_ring_retry = true,
.tx_ring_size = DP_TCL_DATA_RING_SIZE, .tx_ring_size = DP_TCL_DATA_RING_SIZE,
.smp2p_wow_exit = false, .smp2p_wow_exit = false,
.support_fw_mac_sequence = false,
}, },
{ {
.name = "qca6390 hw2.0", .name = "qca6390 hw2.0",
...@@ -277,6 +278,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { ...@@ -277,6 +278,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
.tcl_ring_retry = true, .tcl_ring_retry = true,
.tx_ring_size = DP_TCL_DATA_RING_SIZE, .tx_ring_size = DP_TCL_DATA_RING_SIZE,
.smp2p_wow_exit = false, .smp2p_wow_exit = false,
.support_fw_mac_sequence = true,
}, },
{ {
.name = "qcn9074 hw1.0", .name = "qcn9074 hw1.0",
...@@ -356,6 +358,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { ...@@ -356,6 +358,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
.tcl_ring_retry = true, .tcl_ring_retry = true,
.tx_ring_size = DP_TCL_DATA_RING_SIZE, .tx_ring_size = DP_TCL_DATA_RING_SIZE,
.smp2p_wow_exit = false, .smp2p_wow_exit = false,
.support_fw_mac_sequence = false,
}, },
{ {
.name = "wcn6855 hw2.0", .name = "wcn6855 hw2.0",
...@@ -438,6 +441,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { ...@@ -438,6 +441,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
.tcl_ring_retry = true, .tcl_ring_retry = true,
.tx_ring_size = DP_TCL_DATA_RING_SIZE, .tx_ring_size = DP_TCL_DATA_RING_SIZE,
.smp2p_wow_exit = false, .smp2p_wow_exit = false,
.support_fw_mac_sequence = true,
}, },
{ {
.name = "wcn6855 hw2.1", .name = "wcn6855 hw2.1",
...@@ -519,6 +523,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { ...@@ -519,6 +523,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
.tcl_ring_retry = true, .tcl_ring_retry = true,
.tx_ring_size = DP_TCL_DATA_RING_SIZE, .tx_ring_size = DP_TCL_DATA_RING_SIZE,
.smp2p_wow_exit = false, .smp2p_wow_exit = false,
.support_fw_mac_sequence = true,
}, },
{ {
.name = "wcn6750 hw1.0", .name = "wcn6750 hw1.0",
...@@ -597,6 +602,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { ...@@ -597,6 +602,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
.tcl_ring_retry = false, .tcl_ring_retry = false,
.tx_ring_size = DP_TCL_DATA_RING_SIZE_WCN6750, .tx_ring_size = DP_TCL_DATA_RING_SIZE_WCN6750,
.smp2p_wow_exit = true, .smp2p_wow_exit = true,
.support_fw_mac_sequence = true,
}, },
}; };
......
...@@ -219,6 +219,7 @@ struct ath11k_hw_params { ...@@ -219,6 +219,7 @@ struct ath11k_hw_params {
bool tcl_ring_retry; bool tcl_ring_retry;
u32 tx_ring_size; u32 tx_ring_size;
bool smp2p_wow_exit; bool smp2p_wow_exit;
bool support_fw_mac_sequence;
}; };
struct ath11k_hw_ops { struct ath11k_hw_ops {
......
...@@ -8010,6 +8010,7 @@ ath11k_mac_op_reconfig_complete(struct ieee80211_hw *hw, ...@@ -8010,6 +8010,7 @@ ath11k_mac_op_reconfig_complete(struct ieee80211_hw *hw,
struct ath11k *ar = hw->priv; struct ath11k *ar = hw->priv;
struct ath11k_base *ab = ar->ab; struct ath11k_base *ab = ar->ab;
int recovery_count; int recovery_count;
struct ath11k_vif *arvif;
if (reconfig_type != IEEE80211_RECONFIG_TYPE_RESTART) if (reconfig_type != IEEE80211_RECONFIG_TYPE_RESTART)
return; return;
...@@ -8045,6 +8046,12 @@ ath11k_mac_op_reconfig_complete(struct ieee80211_hw *hw, ...@@ -8045,6 +8046,12 @@ ath11k_mac_op_reconfig_complete(struct ieee80211_hw *hw,
ath11k_dbg(ab, ATH11K_DBG_BOOT, "reset success\n"); ath11k_dbg(ab, ATH11K_DBG_BOOT, "reset success\n");
} }
} }
if (ar->ab->hw_params.support_fw_mac_sequence) {
list_for_each_entry(arvif, &ar->arvifs, list) {
if (arvif->is_up && arvif->vdev_type == WMI_VDEV_TYPE_STA)
ieee80211_hw_restart_disconnect(arvif->vif);
}
}
} }
mutex_unlock(&ar->conf_mutex); mutex_unlock(&ar->conf_mutex);
......
...@@ -163,7 +163,7 @@ void ath11k_mac_drain_tx(struct ath11k *ar); ...@@ -163,7 +163,7 @@ void ath11k_mac_drain_tx(struct ath11k *ar);
void ath11k_mac_peer_cleanup_all(struct ath11k *ar); void ath11k_mac_peer_cleanup_all(struct ath11k *ar);
int ath11k_mac_tx_mgmt_pending_free(int buf_id, void *skb, void *ctx); int ath11k_mac_tx_mgmt_pending_free(int buf_id, void *skb, void *ctx);
u8 ath11k_mac_bw_to_mac80211_bw(u8 bw); u8 ath11k_mac_bw_to_mac80211_bw(u8 bw);
u32 ath11k_mac_he_gi_to_nl80211_he_gi(u8 sgi); enum nl80211_he_gi ath11k_mac_he_gi_to_nl80211_he_gi(u8 sgi);
enum nl80211_he_ru_alloc ath11k_mac_phy_he_ru_to_nl80211_he_ru_alloc(u16 ru_phy); enum nl80211_he_ru_alloc ath11k_mac_phy_he_ru_to_nl80211_he_ru_alloc(u16 ru_phy);
enum nl80211_he_ru_alloc ath11k_mac_he_ru_tones_to_nl80211_he_ru_alloc(u16 ru_tones); enum nl80211_he_ru_alloc ath11k_mac_he_ru_tones_to_nl80211_he_ru_alloc(u16 ru_tones);
enum ath11k_supported_bw ath11k_mac_mac80211_bw_to_ath11k_bw(enum rate_info_bw bw); enum ath11k_supported_bw ath11k_mac_mac80211_bw_to_ath11k_bw(enum rate_info_bw bw);
......
...@@ -29,7 +29,7 @@ module_param_named(cold_boot_cal, ath11k_cold_boot_cal, bool, 0644); ...@@ -29,7 +29,7 @@ module_param_named(cold_boot_cal, ath11k_cold_boot_cal, bool, 0644);
MODULE_PARM_DESC(cold_boot_cal, MODULE_PARM_DESC(cold_boot_cal,
"Decrease the channel switch time but increase the driver load time (Default: true)"); "Decrease the channel switch time but increase the driver load time (Default: true)");
static struct qmi_elem_info qmi_wlanfw_host_cap_req_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_host_cap_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -280,7 +280,7 @@ static struct qmi_elem_info qmi_wlanfw_host_cap_req_msg_v01_ei[] = { ...@@ -280,7 +280,7 @@ static struct qmi_elem_info qmi_wlanfw_host_cap_req_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_host_cap_resp_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_host_cap_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -297,7 +297,7 @@ static struct qmi_elem_info qmi_wlanfw_host_cap_resp_msg_v01_ei[] = { ...@@ -297,7 +297,7 @@ static struct qmi_elem_info qmi_wlanfw_host_cap_resp_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_ind_register_req_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_ind_register_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -522,7 +522,7 @@ static struct qmi_elem_info qmi_wlanfw_ind_register_req_msg_v01_ei[] = { ...@@ -522,7 +522,7 @@ static struct qmi_elem_info qmi_wlanfw_ind_register_req_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_ind_register_resp_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_ind_register_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -558,7 +558,7 @@ static struct qmi_elem_info qmi_wlanfw_ind_register_resp_msg_v01_ei[] = { ...@@ -558,7 +558,7 @@ static struct qmi_elem_info qmi_wlanfw_ind_register_resp_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_mem_cfg_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_mem_cfg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_8_BYTE, .data_type = QMI_UNSIGNED_8_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -590,7 +590,7 @@ static struct qmi_elem_info qmi_wlanfw_mem_cfg_s_v01_ei[] = { ...@@ -590,7 +590,7 @@ static struct qmi_elem_info qmi_wlanfw_mem_cfg_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_mem_seg_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_mem_seg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -632,7 +632,7 @@ static struct qmi_elem_info qmi_wlanfw_mem_seg_s_v01_ei[] = { ...@@ -632,7 +632,7 @@ static struct qmi_elem_info qmi_wlanfw_mem_seg_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_request_mem_ind_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_request_mem_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_DATA_LEN, .data_type = QMI_DATA_LEN,
.elem_len = 1, .elem_len = 1,
...@@ -659,7 +659,7 @@ static struct qmi_elem_info qmi_wlanfw_request_mem_ind_msg_v01_ei[] = { ...@@ -659,7 +659,7 @@ static struct qmi_elem_info qmi_wlanfw_request_mem_ind_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_mem_seg_resp_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_mem_seg_resp_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_8_BYTE, .data_type = QMI_UNSIGNED_8_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -699,7 +699,7 @@ static struct qmi_elem_info qmi_wlanfw_mem_seg_resp_s_v01_ei[] = { ...@@ -699,7 +699,7 @@ static struct qmi_elem_info qmi_wlanfw_mem_seg_resp_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_respond_mem_req_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_respond_mem_req_msg_v01_ei[] = {
{ {
.data_type = QMI_DATA_LEN, .data_type = QMI_DATA_LEN,
.elem_len = 1, .elem_len = 1,
...@@ -726,7 +726,7 @@ static struct qmi_elem_info qmi_wlanfw_respond_mem_req_msg_v01_ei[] = { ...@@ -726,7 +726,7 @@ static struct qmi_elem_info qmi_wlanfw_respond_mem_req_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_respond_mem_resp_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_respond_mem_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -744,7 +744,7 @@ static struct qmi_elem_info qmi_wlanfw_respond_mem_resp_msg_v01_ei[] = { ...@@ -744,7 +744,7 @@ static struct qmi_elem_info qmi_wlanfw_respond_mem_resp_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_cap_req_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_cap_req_msg_v01_ei[] = {
{ {
.data_type = QMI_EOTI, .data_type = QMI_EOTI,
.array_type = NO_ARRAY, .array_type = NO_ARRAY,
...@@ -752,7 +752,7 @@ static struct qmi_elem_info qmi_wlanfw_cap_req_msg_v01_ei[] = { ...@@ -752,7 +752,7 @@ static struct qmi_elem_info qmi_wlanfw_cap_req_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_device_info_req_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_device_info_req_msg_v01_ei[] = {
{ {
.data_type = QMI_EOTI, .data_type = QMI_EOTI,
.array_type = NO_ARRAY, .array_type = NO_ARRAY,
...@@ -760,7 +760,7 @@ static struct qmi_elem_info qmi_wlanfw_device_info_req_msg_v01_ei[] = { ...@@ -760,7 +760,7 @@ static struct qmi_elem_info qmi_wlanfw_device_info_req_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlfw_device_info_resp_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlfw_device_info_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -814,7 +814,7 @@ static struct qmi_elem_info qmi_wlfw_device_info_resp_msg_v01_ei[] = { ...@@ -814,7 +814,7 @@ static struct qmi_elem_info qmi_wlfw_device_info_resp_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_rf_chip_info_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_rf_chip_info_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -840,7 +840,7 @@ static struct qmi_elem_info qmi_wlanfw_rf_chip_info_s_v01_ei[] = { ...@@ -840,7 +840,7 @@ static struct qmi_elem_info qmi_wlanfw_rf_chip_info_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_rf_board_info_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_rf_board_info_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -857,7 +857,7 @@ static struct qmi_elem_info qmi_wlanfw_rf_board_info_s_v01_ei[] = { ...@@ -857,7 +857,7 @@ static struct qmi_elem_info qmi_wlanfw_rf_board_info_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_soc_info_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_soc_info_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -873,7 +873,7 @@ static struct qmi_elem_info qmi_wlanfw_soc_info_s_v01_ei[] = { ...@@ -873,7 +873,7 @@ static struct qmi_elem_info qmi_wlanfw_soc_info_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_fw_version_info_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_fw_version_info_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -899,7 +899,7 @@ static struct qmi_elem_info qmi_wlanfw_fw_version_info_s_v01_ei[] = { ...@@ -899,7 +899,7 @@ static struct qmi_elem_info qmi_wlanfw_fw_version_info_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_cap_resp_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_cap_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1100,7 +1100,7 @@ static struct qmi_elem_info qmi_wlanfw_cap_resp_msg_v01_ei[] = { ...@@ -1100,7 +1100,7 @@ static struct qmi_elem_info qmi_wlanfw_cap_resp_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_bdf_download_req_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_bdf_download_req_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_1_BYTE, .data_type = QMI_UNSIGNED_1_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1235,7 +1235,7 @@ static struct qmi_elem_info qmi_wlanfw_bdf_download_req_msg_v01_ei[] = { ...@@ -1235,7 +1235,7 @@ static struct qmi_elem_info qmi_wlanfw_bdf_download_req_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_bdf_download_resp_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_bdf_download_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1253,7 +1253,7 @@ static struct qmi_elem_info qmi_wlanfw_bdf_download_resp_msg_v01_ei[] = { ...@@ -1253,7 +1253,7 @@ static struct qmi_elem_info qmi_wlanfw_bdf_download_resp_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_m3_info_req_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_m3_info_req_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_8_BYTE, .data_type = QMI_UNSIGNED_8_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1277,7 +1277,7 @@ static struct qmi_elem_info qmi_wlanfw_m3_info_req_msg_v01_ei[] = { ...@@ -1277,7 +1277,7 @@ static struct qmi_elem_info qmi_wlanfw_m3_info_req_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_m3_info_resp_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_m3_info_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1294,7 +1294,7 @@ static struct qmi_elem_info qmi_wlanfw_m3_info_resp_msg_v01_ei[] = { ...@@ -1294,7 +1294,7 @@ static struct qmi_elem_info qmi_wlanfw_m3_info_resp_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_ce_tgt_pipe_cfg_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_ce_tgt_pipe_cfg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1347,7 +1347,7 @@ static struct qmi_elem_info qmi_wlanfw_ce_tgt_pipe_cfg_s_v01_ei[] = { ...@@ -1347,7 +1347,7 @@ static struct qmi_elem_info qmi_wlanfw_ce_tgt_pipe_cfg_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_ce_svc_pipe_cfg_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_ce_svc_pipe_cfg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1382,7 +1382,7 @@ static struct qmi_elem_info qmi_wlanfw_ce_svc_pipe_cfg_s_v01_ei[] = { ...@@ -1382,7 +1382,7 @@ static struct qmi_elem_info qmi_wlanfw_ce_svc_pipe_cfg_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_shadow_reg_cfg_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_shadow_reg_cfg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_2_BYTE, .data_type = QMI_UNSIGNED_2_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1406,7 +1406,7 @@ static struct qmi_elem_info qmi_wlanfw_shadow_reg_cfg_s_v01_ei[] = { ...@@ -1406,7 +1406,7 @@ static struct qmi_elem_info qmi_wlanfw_shadow_reg_cfg_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_shadow_reg_v2_cfg_s_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_shadow_reg_v2_cfg_s_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1423,7 +1423,7 @@ static struct qmi_elem_info qmi_wlanfw_shadow_reg_v2_cfg_s_v01_ei[] = { ...@@ -1423,7 +1423,7 @@ static struct qmi_elem_info qmi_wlanfw_shadow_reg_v2_cfg_s_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_wlan_mode_req_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_wlan_mode_req_msg_v01_ei[] = {
{ {
.data_type = QMI_UNSIGNED_4_BYTE, .data_type = QMI_UNSIGNED_4_BYTE,
.elem_len = 1, .elem_len = 1,
...@@ -1458,7 +1458,7 @@ static struct qmi_elem_info qmi_wlanfw_wlan_mode_req_msg_v01_ei[] = { ...@@ -1458,7 +1458,7 @@ static struct qmi_elem_info qmi_wlanfw_wlan_mode_req_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_wlan_mode_resp_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_wlan_mode_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1476,7 +1476,7 @@ static struct qmi_elem_info qmi_wlanfw_wlan_mode_resp_msg_v01_ei[] = { ...@@ -1476,7 +1476,7 @@ static struct qmi_elem_info qmi_wlanfw_wlan_mode_resp_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_wlan_cfg_req_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_wlan_cfg_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -1615,7 +1615,7 @@ static struct qmi_elem_info qmi_wlanfw_wlan_cfg_req_msg_v01_ei[] = { ...@@ -1615,7 +1615,7 @@ static struct qmi_elem_info qmi_wlanfw_wlan_cfg_req_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_wlan_cfg_resp_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_wlan_cfg_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1632,28 +1632,28 @@ static struct qmi_elem_info qmi_wlanfw_wlan_cfg_resp_msg_v01_ei[] = { ...@@ -1632,28 +1632,28 @@ static struct qmi_elem_info qmi_wlanfw_wlan_cfg_resp_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_mem_ready_ind_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_mem_ready_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_EOTI, .data_type = QMI_EOTI,
.array_type = NO_ARRAY, .array_type = NO_ARRAY,
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_fw_ready_ind_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_fw_ready_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_EOTI, .data_type = QMI_EOTI,
.array_type = NO_ARRAY, .array_type = NO_ARRAY,
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_cold_boot_cal_done_ind_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_cold_boot_cal_done_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_EOTI, .data_type = QMI_EOTI,
.array_type = NO_ARRAY, .array_type = NO_ARRAY,
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_wlan_ini_req_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_wlan_ini_req_msg_v01_ei[] = {
{ {
.data_type = QMI_OPT_FLAG, .data_type = QMI_OPT_FLAG,
.elem_len = 1, .elem_len = 1,
...@@ -1679,7 +1679,7 @@ static struct qmi_elem_info qmi_wlanfw_wlan_ini_req_msg_v01_ei[] = { ...@@ -1679,7 +1679,7 @@ static struct qmi_elem_info qmi_wlanfw_wlan_ini_req_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlanfw_wlan_ini_resp_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlanfw_wlan_ini_resp_msg_v01_ei[] = {
{ {
.data_type = QMI_STRUCT, .data_type = QMI_STRUCT,
.elem_len = 1, .elem_len = 1,
...@@ -1697,7 +1697,7 @@ static struct qmi_elem_info qmi_wlanfw_wlan_ini_resp_msg_v01_ei[] = { ...@@ -1697,7 +1697,7 @@ static struct qmi_elem_info qmi_wlanfw_wlan_ini_resp_msg_v01_ei[] = {
}, },
}; };
static struct qmi_elem_info qmi_wlfw_fw_init_done_ind_msg_v01_ei[] = { static const struct qmi_elem_info qmi_wlfw_fw_init_done_ind_msg_v01_ei[] = {
{ {
.data_type = QMI_EOTI, .data_type = QMI_EOTI,
.array_type = NO_ARRAY, .array_type = NO_ARRAY,
...@@ -3090,6 +3090,9 @@ static const struct qmi_msg_handler ath11k_qmi_msg_handlers[] = { ...@@ -3090,6 +3090,9 @@ static const struct qmi_msg_handler ath11k_qmi_msg_handlers[] = {
sizeof(struct qmi_wlfw_fw_init_done_ind_msg_v01), sizeof(struct qmi_wlfw_fw_init_done_ind_msg_v01),
.fn = ath11k_qmi_msg_fw_init_done_cb, .fn = ath11k_qmi_msg_fw_init_done_cb,
}, },
/* end of list */
{},
}; };
static int ath11k_qmi_ops_new_server(struct qmi_handle *qmi_hdl, static int ath11k_qmi_ops_new_server(struct qmi_handle *qmi_hdl,
......
...@@ -585,7 +585,7 @@ static u32 ar9003_mci_wait_for_gpm(struct ath_hw *ah, u8 gpm_type, ...@@ -585,7 +585,7 @@ static u32 ar9003_mci_wait_for_gpm(struct ath_hw *ah, u8 gpm_type,
{ {
struct ath_common *common = ath9k_hw_common(ah); struct ath_common *common = ath9k_hw_common(ah);
struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
u32 *p_gpm = NULL, mismatch = 0, more_data; u32 *p_gpm = NULL, more_data;
u32 offset; u32 offset;
u8 recv_type = 0, recv_opcode = 0; u8 recv_type = 0, recv_opcode = 0;
bool b_is_bt_cal_done = (gpm_type == MCI_GPM_BT_CAL_DONE); bool b_is_bt_cal_done = (gpm_type == MCI_GPM_BT_CAL_DONE);
...@@ -656,7 +656,6 @@ static u32 ar9003_mci_wait_for_gpm(struct ath_hw *ah, u8 gpm_type, ...@@ -656,7 +656,6 @@ static u32 ar9003_mci_wait_for_gpm(struct ath_hw *ah, u8 gpm_type,
} else { } else {
ath_dbg(common, MCI, "MCI GPM subtype not match 0x%x\n", ath_dbg(common, MCI, "MCI GPM subtype not match 0x%x\n",
*(p_gpm + 1)); *(p_gpm + 1));
mismatch++;
ar9003_mci_process_gpm_extra(ah, recv_type, ar9003_mci_process_gpm_extra(ah, recv_type,
recv_opcode, p_gpm); recv_opcode, p_gpm);
} }
......
...@@ -1678,7 +1678,6 @@ void ath9k_release_buffered_frames(struct ieee80211_hw *hw, ...@@ -1678,7 +1678,6 @@ void ath9k_release_buffered_frames(struct ieee80211_hw *hw,
struct ieee80211_tx_info *info; struct ieee80211_tx_info *info;
struct list_head bf_q; struct list_head bf_q;
struct ath_buf *bf_tail = NULL, *bf = NULL; struct ath_buf *bf_tail = NULL, *bf = NULL;
int sent = 0;
int i, ret; int i, ret;
INIT_LIST_HEAD(&bf_q); INIT_LIST_HEAD(&bf_q);
...@@ -1707,7 +1706,6 @@ void ath9k_release_buffered_frames(struct ieee80211_hw *hw, ...@@ -1707,7 +1706,6 @@ void ath9k_release_buffered_frames(struct ieee80211_hw *hw,
bf_tail = bf; bf_tail = bf;
nframes--; nframes--;
sent++;
TX_STAT_INC(sc, txq->axq_qnum, a_queued_hw); TX_STAT_INC(sc, txq->axq_qnum, a_queued_hw);
if (an->sta && skb_queue_empty(&tid->retry_q)) if (an->sta && skb_queue_empty(&tid->retry_q))
......
...@@ -118,10 +118,10 @@ struct carl9170_reg_list { ...@@ -118,10 +118,10 @@ struct carl9170_reg_list {
} __packed; } __packed;
struct carl9170_write_reg { struct carl9170_write_reg {
struct { DECLARE_FLEX_ARRAY(struct {
__le32 addr; __le32 addr;
__le32 val; __le32 val;
} regs[0] __packed; } __packed, regs);
} __packed; } __packed;
struct carl9170_write_reg_byte { struct carl9170_write_reg_byte {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment