qcacld-3.0: Add support for sending QMI misc msg on DL deinit
Add support for sending QMI WFDS misc request to QMI server on Direct link deinit. Change-Id: I611625d83719c0f8a7dfbef1d3c8328cb618ef7f CRs-Fixed: 3454630
This commit is contained in:

committed by
Madan Koyyalamudi

부모
01677182ff
커밋
7b19419ddd
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -224,6 +224,7 @@ struct wlan_qmi_wfds_ipcc_map_n_cfg_req_msg {
|
||||
* @qmi_wfds_send_req_mem_msg: Callback to send WFDS request memory message
|
||||
* @qmi_wfds_send_ipcc_map_n_cfg_msg: Callback to send WFDS IPCC map and
|
||||
* configure message
|
||||
* @qmi_wfds_send_misc_req_msg: Callback to send WFDS misc request message
|
||||
*/
|
||||
struct wlan_qmi_psoc_callbacks {
|
||||
#ifdef QMI_WFDS
|
||||
@@ -235,6 +236,7 @@ struct wlan_qmi_psoc_callbacks {
|
||||
struct wlan_qmi_wfds_mem_req_msg *src_info);
|
||||
QDF_STATUS (*qmi_wfds_send_ipcc_map_n_cfg_msg)(
|
||||
struct wlan_qmi_wfds_ipcc_map_n_cfg_req_msg *src_info);
|
||||
QDF_STATUS (*qmi_wfds_send_misc_req_msg)(bool is_ssr);
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -77,6 +77,17 @@ wlan_qmi_wfds_send_req_mem_msg(struct wlan_objmgr_psoc *psoc,
|
||||
QDF_STATUS
|
||||
wlan_qmi_wfds_ipcc_map_n_cfg_msg(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_qmi_wfds_ipcc_map_n_cfg_req_msg *src_info);
|
||||
|
||||
/*
|
||||
* wlan_qmi_wfds_send_misc_req_msg() - Send the misc req message
|
||||
* to QMI server
|
||||
* @psoc: PSOC handle
|
||||
* @is_ssr: true if SSR is in progress else false
|
||||
*
|
||||
* Return: QDF status
|
||||
*/
|
||||
QDF_STATUS
|
||||
wlan_qmi_wfds_send_misc_req_msg(struct wlan_objmgr_psoc *psoc, bool is_ssr);
|
||||
#else
|
||||
static inline
|
||||
QDF_STATUS wlan_qmi_wfds_init(struct wlan_objmgr_psoc *psoc)
|
||||
@@ -109,5 +120,11 @@ wlan_qmi_wfds_ipcc_map_n_cfg_msg(struct wlan_objmgr_psoc *psoc,
|
||||
{
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_qmi_wfds_send_misc_req_msg(struct wlan_objmgr_psoc *psoc, bool is_ssr)
|
||||
{
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -100,6 +100,8 @@ ucfg_qmi_wfds_register_os_if_callbacks(struct wlan_qmi_psoc_context *qmi_ctx,
|
||||
cb_obj->qmi_wfds_send_req_mem_msg;
|
||||
qmi_ctx->qmi_cbs.qmi_wfds_send_ipcc_map_n_cfg_msg =
|
||||
cb_obj->qmi_wfds_send_ipcc_map_n_cfg_msg;
|
||||
qmi_ctx->qmi_cbs.qmi_wfds_send_misc_req_msg =
|
||||
cb_obj->qmi_wfds_send_misc_req_msg;
|
||||
}
|
||||
#else
|
||||
static inline void
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -103,3 +103,19 @@ wlan_qmi_wfds_ipcc_map_n_cfg_msg(struct wlan_objmgr_psoc *psoc,
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
wlan_qmi_wfds_send_misc_req_msg(struct wlan_objmgr_psoc *psoc, bool is_ssr)
|
||||
{
|
||||
struct wlan_qmi_psoc_context *qmi_ctx = qmi_psoc_get_priv(psoc);
|
||||
|
||||
if (!qmi_ctx) {
|
||||
qmi_err("QMI context is NULL");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
if (qmi_ctx->qmi_cbs.qmi_wfds_send_misc_req_msg)
|
||||
return qmi_ctx->qmi_cbs.qmi_wfds_send_misc_req_msg(is_ssr);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user