From ade78b2c55383647a16660c3f8e7eb964e072621 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatnagar Date: Thu, 11 Nov 2021 13:14:56 +0530 Subject: [PATCH] qcacmn: Add legacy cb in service ready ext2 handler Add wmi service ready legacy cb for service ready ext2 event. Change-Id: I610d21bfc62f8e0ba3d1787802603fe05bcf0d27 CRs-Fixed: 3073215 --- target_if/init_deinit/src/init_event_handler.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/target_if/init_deinit/src/init_event_handler.c b/target_if/init_deinit/src/init_event_handler.c index 8bf712fc65..29b604e045 100644 --- a/target_if/init_deinit/src/init_event_handler.c +++ b/target_if/init_deinit/src/init_event_handler.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2021 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 @@ -277,6 +278,7 @@ static int init_deinit_service_ext2_ready_event_handler(ol_scn_t scn_handle, struct target_psoc_info *tgt_hdl; struct wmi_unified *wmi_handle; struct tgt_info *info; + wmi_legacy_service_ready_callback legacy_callback; if (!scn_handle) { target_if_err("scn handle NULL in service ready ext2 handler"); @@ -358,6 +360,11 @@ static int init_deinit_service_ext2_ready_event_handler(ol_scn_t scn_handle, if (err_code) target_if_debug("failed to populate dbs_or_sbs cap ext2"); + legacy_callback = target_if_get_psoc_legacy_service_ready_cb(); + if (legacy_callback) + legacy_callback(wmi_service_ready_ext2_event_id, + scn_handle, event, data_len); + target_if_regulatory_set_ext_tpc(psoc); target_if_reg_set_lower_6g_edge_ch_info(psoc);