qcacld-3.0: Add SSR callbacks

As CDS is not usable by WIN, add callbacks that are registered
in QDF and correct the module dependencies.

Also rearrange the header file inclusion, due to in cmn project,
the qdf_self_recovery_callback() is moved from qdf_event.h to
qdf_platform.h.

Change-Id: I6d03a1a8df01df4c67a933a11d86147384b656fd
CRs-fixed: 2263625
This commit is contained in:
Ryan Hsu 2018-05-29 15:07:25 -07:00 • committed by nshrivas
commit d0327d53d7
2 changed files with 6 additions and 4 deletions

View file

@ -34,6 +34,8 @@
#include <qdf_trace.h>
#include <qdf_event.h>
#include <qdf_lock.h>
#include "qdf_platform.h"
#include "qdf_cpuhp.h"
#include "reg_services_public_struct.h"
#include <cds_reg_service.h>
#include <cds_packet.h>

View file

@ -22,7 +22,6 @@
* Connectivity driver services APIs
*/
#include "cds_sched.h"
#include <cds_api.h>
#include "sir_types.h"
#include "sir_api.h"
@ -39,7 +38,6 @@
#include "pld_common.h"
#include "sap_api.h"
#include "qdf_trace.h"
#include "bmi.h"
#include "ol_fw.h"
#include "ol_if_athvar.h"
@ -56,10 +54,8 @@
#include <cdp_txrx_misc.h>
#include <dispatcher_init_deinit.h>
#include <cdp_txrx_handle.h>
#include "qdf_cpuhp.h"
#include "target_type.h"
#include "wlan_ocb_ucfg_api.h"
#include "qdf_platform.h"
#include "wlan_ipa_ucfg_api.h"
#ifdef ENABLE_SMMU_S1_TRANSLATION
@ -171,6 +167,10 @@ QDF_STATUS cds_init(void)
qdf_cpuhp_init();
qdf_register_self_recovery_callback(cds_trigger_recovery);
qdf_register_fw_down_callback(cds_is_fw_down);
qdf_register_ssr_protect_callbacks(cds_ssr_protect,
cds_ssr_unprotect);
qdf_register_module_state_query_callback(
cds_is_module_state_transitioning);
gp_cds_context = &g_cds_context;