From aeb4629aa4bcb40e3c3ca1987d960f6869118625 Mon Sep 17 00:00:00 2001 From: Wu Gao Date: Mon, 11 May 2020 01:54:43 +0800 Subject: [PATCH] qcacld-3.0: Correct the names of structure and API about spectral There is change modified the name of structure and API about spectral cmd operations registration. So, add this change to correct them in wma layer. Change-Id: Icf1b8eb84e6cd6d110fe32ab30566c68ea33e2d7 CRs-Fixed: 2682782 --- core/wma/src/wma_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index d2f2691fb06d..d95e3d2463cf 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -83,8 +83,10 @@ #include #include "wifi_pos_api.h" #include "hif_main.h" +#ifdef WLAN_CONV_SPECTRAL_ENABLE #include #include +#endif #include "init_event_handler.h" #include "init_deinit_lmac.h" #include "target_if_green_ap.h" @@ -3988,13 +3990,13 @@ static void wma_send_time_stamp_sync_cmd(void *data) #ifdef WLAN_CONV_SPECTRAL_ENABLE static void wma_register_spectral_cmds(tp_wma_handle wma_handle) { - struct wmi_spectral_cmd_ops cmd_ops; + struct spectral_wmi_ops cmd_ops; cmd_ops.wmi_spectral_configure_cmd_send = wmi_unified_vdev_spectral_configure_cmd_send; cmd_ops.wmi_spectral_enable_cmd_send = wmi_unified_vdev_spectral_enable_cmd_send; - wlan_register_wmi_spectral_cmd_ops(wma_handle->pdev, &cmd_ops); + wlan_register_spectral_wmi_ops(wma_handle->psoc, &cmd_ops); } #else static void wma_register_spectral_cmds(tp_wma_handle wma_handle)