icnss: Provide client_id in ind_register request
Provide client_id in ind_register QMI request message so that WLAN FW can identify different clients. CRs-Fixed: 1065341 Change-Id: I2d79daa72fb87a7d3c0818563a88e94f36af48b8 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
This commit is contained in:
parent
087b488761
commit
5466d309b4
3 changed files with 50 additions and 2 deletions
|
@ -47,6 +47,7 @@
|
|||
|
||||
#define WLFW_TIMEOUT_MS 3000
|
||||
#define WLFW_SERVICE_INS_ID_V01 0
|
||||
#define WLFW_CLIENT_ID 0x4b4e454c
|
||||
#define MAX_PROP_SIZE 32
|
||||
#define NUM_LOG_PAGES 10
|
||||
#define NUM_REG_LOG_PAGES 4
|
||||
|
@ -1525,6 +1526,8 @@ static int wlfw_ind_register_send_sync_msg(void)
|
|||
memset(&req, 0, sizeof(req));
|
||||
memset(&resp, 0, sizeof(resp));
|
||||
|
||||
req.client_id_valid = 1;
|
||||
req.client_id = WLFW_CLIENT_ID;
|
||||
req.fw_ready_enable_valid = 1;
|
||||
req.fw_ready_enable = 1;
|
||||
req.msa_ready_enable_valid = 1;
|
||||
|
|
|
@ -342,6 +342,24 @@ struct elem_info wlfw_ind_register_req_msg_v01_ei[] = {
|
|||
.offset = offsetof(struct wlfw_ind_register_req_msg_v01,
|
||||
pin_connect_result_enable),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(uint8_t),
|
||||
.is_array = NO_ARRAY,
|
||||
.tlv_type = 0x15,
|
||||
.offset = offsetof(struct wlfw_ind_register_req_msg_v01,
|
||||
client_id_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(uint32_t),
|
||||
.is_array = NO_ARRAY,
|
||||
.tlv_type = 0x15,
|
||||
.offset = offsetof(struct wlfw_ind_register_req_msg_v01,
|
||||
client_id),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_EOTI,
|
||||
.is_array = NO_ARRAY,
|
||||
|
@ -360,6 +378,26 @@ struct elem_info wlfw_ind_register_resp_msg_v01_ei[] = {
|
|||
resp),
|
||||
.ei_array = get_qmi_response_type_v01_ei(),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(uint8_t),
|
||||
.is_array = NO_ARRAY,
|
||||
.tlv_type = 0x10,
|
||||
.offset = offsetof(
|
||||
struct wlfw_ind_register_resp_msg_v01,
|
||||
fw_status_valid),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_8_BYTE,
|
||||
.elem_len = 1,
|
||||
.elem_size = sizeof(uint64_t),
|
||||
.is_array = NO_ARRAY,
|
||||
.tlv_type = 0x10,
|
||||
.offset = offsetof(
|
||||
struct wlfw_ind_register_resp_msg_v01,
|
||||
fw_status),
|
||||
},
|
||||
{
|
||||
.data_type = QMI_EOTI,
|
||||
.is_array = NO_ARRAY,
|
||||
|
|
|
@ -97,6 +97,9 @@ enum wlfw_pipedir_enum_v01 {
|
|||
#define QMI_WLFW_CE_ATTR_DISABLE_INTR_V01 ((uint32_t)0x08)
|
||||
#define QMI_WLFW_CE_ATTR_ENABLE_POLL_V01 ((uint32_t)0x10)
|
||||
|
||||
#define QMI_WLFW_ALREADY_REGISTERED_V01 ((uint64_t)0x01ULL)
|
||||
#define QMI_WLFW_FW_READY_V01 ((uint64_t)0x02ULL)
|
||||
|
||||
struct wlfw_ce_tgt_pipe_cfg_s_v01 {
|
||||
uint32_t pipe_num;
|
||||
enum wlfw_pipedir_enum_v01 pipe_dir;
|
||||
|
@ -151,14 +154,18 @@ struct wlfw_ind_register_req_msg_v01 {
|
|||
uint8_t msa_ready_enable;
|
||||
uint8_t pin_connect_result_enable_valid;
|
||||
uint8_t pin_connect_result_enable;
|
||||
uint8_t client_id_valid;
|
||||
uint32_t client_id;
|
||||
};
|
||||
#define WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN 20
|
||||
#define WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN 27
|
||||
extern struct elem_info wlfw_ind_register_req_msg_v01_ei[];
|
||||
|
||||
struct wlfw_ind_register_resp_msg_v01 {
|
||||
struct qmi_response_type_v01 resp;
|
||||
uint8_t fw_status_valid;
|
||||
uint64_t fw_status;
|
||||
};
|
||||
#define WLFW_IND_REGISTER_RESP_MSG_V01_MAX_MSG_LEN 7
|
||||
#define WLFW_IND_REGISTER_RESP_MSG_V01_MAX_MSG_LEN 18
|
||||
extern struct elem_info wlfw_ind_register_resp_msg_v01_ei[];
|
||||
|
||||
struct wlfw_fw_ready_ind_msg_v01 {
|
||||
|
|
Loading…
Add table
Reference in a new issue