diff --git a/framework/src/csifw/CSIService.c b/framework/src/csifw/CSIService.c index f222cedaf2..b20871f54d 100644 --- a/framework/src/csifw/CSIService.c +++ b/framework/src/csifw/CSIService.c @@ -143,12 +143,13 @@ CSIFW_RES csi_service_init(csi_config_type_t config_type, client_raw_data_listen CSIFW_RES res = CSIFW_OK; g_csi_config_type = config_type; g_service_interval = interval; - - if (g_csi_config_type == HT_CSI_DATA || g_csi_config_type == HT_CSI_DATA_ACC1) { ping_generator_change_interval(g_service_interval); - } else if (g_csi_config_type == NON_HT_CSI_DATA || g_csi_config_type == NON_HT_CSI_DATA_ACC1) { - ping_generator_change_interval(0); - } + + // if (g_csi_config_type == HT_CSI_DATA || g_csi_config_type == HT_CSI_DATA_ACC1) { + // ping_generator_change_interval(g_service_interval); + // } else if (g_csi_config_type == NON_HT_CSI_DATA || g_csi_config_type == NON_HT_CSI_DATA_ACC1) { + // ping_generator_change_interval(0); + // } gParsedDataBufferLen = CSIFW_MAX_RAW_BUFF_LEN; g_parsed_buffptr = (float *)malloc(sizeof(float) * gParsedDataBufferLen); @@ -305,12 +306,14 @@ CSIFW_RES csi_service_change_interval(unsigned int interval) WAIT_SEMAPHORE(g_sema) g_service_interval = interval; int res = CSIFW_OK; - if(g_csi_config_type == HT_CSI_DATA || g_csi_config_type == HT_CSI_DATA_ACC1){ ping_generator_change_interval(interval); - } - else{ - res = csi_packet_change_interval(interval); - } + + // if(g_csi_config_type == HT_CSI_DATA || g_csi_config_type == HT_CSI_DATA_ACC1){ + // ping_generator_change_interval(interval); + // } + // else{ + // res = csi_packet_change_interval(interval); + // } POST_SEMAPHORE(g_sema); return res; } diff --git a/os/board/rtl8730e/src/component/os/tizenrt/rtk_wifi_csi.c b/os/board/rtl8730e/src/component/os/tizenrt/rtk_wifi_csi.c index f008f2df48..a62cce77ff 100644 --- a/os/board/rtl8730e/src/component/os/tizenrt/rtk_wifi_csi.c +++ b/os/board/rtl8730e/src/component/os/tizenrt/rtk_wifi_csi.c @@ -141,7 +141,7 @@ static int rtk_wifi_csi_set_config(unsigned long arg) break; case NON_HT_CSI_DATA: - g_rtk_drv->act_param.mode = CSI_MODE_RX_RESP; + g_rtk_drv->act_param.mode = CSI_MODE_NORMAL; g_rtk_drv->act_param.ch_opt = CSI_CH_LEGACY; g_rtk_drv->act_param.data_rate = 0xC; g_rtk_drv->act_param.accuracy = CSI_ACCU_1BYTE; @@ -149,7 +149,7 @@ static int rtk_wifi_csi_set_config(unsigned long arg) break; case NON_HT_CSI_DATA_ACC1: - g_rtk_drv->act_param.mode = CSI_MODE_RX_RESP; + g_rtk_drv->act_param.mode = CSI_MODE_NORMAL; g_rtk_drv->act_param.ch_opt = CSI_CH_LEGACY; g_rtk_drv->act_param.data_rate = 0xC; g_rtk_drv->act_param.accuracy = CSI_ACCU_2BYTES;