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)