*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "nr5g_fapi_fapi2mac_p5_proc.h"
#include "nr5g_fapi_stats.h"
#include "nr5g_fapi_fapi2phy_p5_proc.h"
#include "nr5g_fapi_fapi2mac_p5_proc.h"
#include "nr5g_fapi_stats.h"
#include "nr5g_fapi_fapi2phy_p5_proc.h"
- nr5g_fapi_fapi2mac_create_api_list_elem(
- FAPI_VENDOR_EXT_SHUTDOWN_RESPONSE, 1,
- sizeof(fapi_vendor_ext_shutdown_res_t));
+ nr5g_fapi_fapi2mac_create_api_list_elem
+ (FAPI_VENDOR_EXT_SHUTDOWN_RESPONSE, 1,
+ sizeof(fapi_vendor_ext_shutdown_res_t));
if (!p_list_elem) {
NR5G_FAPI_LOG(ERROR_LOG, ("[SHUTDOWN.response] Unable to create "
"list element. Out of memory!!!"));
if (!p_list_elem) {
NR5G_FAPI_LOG(ERROR_LOG, ("[SHUTDOWN.response] Unable to create "
"list element. Out of memory!!!"));
p_stats->fapi_stats.fapi_vext_shutdown_res++;
NR5G_FAPI_LOG(INFO_LOG, ("[SHUTDOWN.response][%d]", phy_id));
p_stats->fapi_stats.fapi_vext_shutdown_res++;
NR5G_FAPI_LOG(INFO_LOG, ("[SHUTDOWN.response][%d]", phy_id));
p_stats->fapi_stats.fapi_stop_ind++;
NR5G_FAPI_LOG(INFO_LOG, ("[STOP.Indication][%d]", phy_id));
p_phy_instance->shutdown_retries = 0;
p_stats->fapi_stats.fapi_stop_ind++;
NR5G_FAPI_LOG(INFO_LOG, ("[STOP.Indication][%d]", phy_id));
p_phy_instance->shutdown_retries = 0;
- nr5g_fapi_shutdown_request(p_phy_instance, &fapi_req);
+ nr5g_fapi_shutdown_request(0, p_phy_instance, &fapi_req);
+ nr5g_fapi_fapi2phy_send_api_list(0);
} else {
NR5G_FAPI_LOG(ERROR_LOG, ("[SHUTDOWN.response] Invalid status "
"from PHY, hence triggering Error Indication"));
} else {
NR5G_FAPI_LOG(ERROR_LOG, ("[SHUTDOWN.response] Invalid status "
"from PHY, hence triggering Error Indication"));
p_stats->fapi_stats.fapi_error_ind++;
p_phy_instance->shutdown_retries = 0;
NR5G_FAPI_LOG(INFO_LOG, ("[Error.Indication][%d]", phy_id));
p_stats->fapi_stats.fapi_error_ind++;
p_phy_instance->shutdown_retries = 0;
NR5G_FAPI_LOG(INFO_LOG, ("[Error.Indication][%d]", phy_id));