qcacld-3.0: Remove recovery notifier from ol layer
Remove ol recovery notifier to log ce info as the notifier
is added in hif layer.
Change-Id: Ia3b56f677d7207f7b650ee1060032c285fa946fe
CRs-Fixed: 2649143
diff --git a/core/dp/txrx/ol_txrx.c b/core/dp/txrx/ol_txrx.c
index a4324a9..3bdf3f0 100644
--- a/core/dp/txrx/ol_txrx.c
+++ b/core/dp/txrx/ol_txrx.c
@@ -6100,52 +6100,6 @@
}
#endif /* WLAN_FEATURE_PKT_CAPTURE */
-#ifdef DP_SUPPORT_RECOVERY_NOTIFY
-static
-int ol_recovery_notifier_cb(struct notifier_block *block,
- unsigned long state, void *data)
-{
- struct qdf_notifer_data *notif_data = data;
- qdf_notif_block *notif_block;
- struct ol_txrx_soc_t *soc;
- struct hif_opaque_softc *hif_handle;
-
- if (!data || !block)
- return -EINVAL;
-
- notif_block = qdf_container_of(block, qdf_notif_block, notif_block);
-
- soc = notif_block->priv_data;
- if (!soc)
- return -EINVAL;
-
- hif_handle = cds_get_context(QDF_MODULE_ID_HIF);
- hif_log_ce_info(hif_handle, notif_data->hang_data,
- ¬if_data->offset);
-
- return 0;
-}
-
-static qdf_notif_block ol_recovery_notifier = {
- .notif_block.notifier_call = ol_recovery_notifier_cb,
-};
-
-static
-QDF_STATUS ol_register_recovery_notifier(struct cdp_soc_t *soc_hdl)
-{
- struct ol_txrx_soc_t *soc = cdp_soc_t_to_ol_txrx_soc_t(soc_hdl);
-
- ol_recovery_notifier.priv_data = soc;
- return qdf_hang_event_register_notifier(&ol_recovery_notifier);
-}
-
-static
-QDF_STATUS ol_unregister_recovery_notifier(void)
-{
- return qdf_hang_event_unregister_notifier(&ol_recovery_notifier);
-}
-#endif
-
static struct cdp_cmn_ops ol_ops_cmn = {
.txrx_soc_attach_target = ol_txrx_soc_attach_target,
.txrx_vdev_attach = ol_txrx_vdev_attach,
@@ -6214,10 +6168,6 @@
.vdev_set_bundle_require_flag = ol_tx_vdev_set_bundle_require,
.pdev_reset_bundle_require_flag = ol_tx_pdev_reset_bundle_require,
#endif
-#ifdef DP_SUPPORT_RECOVERY_NOTIFY
- .register_recovery_notifier = ol_register_recovery_notifier,
- .unregister_recovery_notifier = ol_unregister_recovery_notifier,
-#endif
};
static struct cdp_flowctl_ops ol_ops_flowctl = {