Skip to content

Commit

Permalink
Changes for NONHT + Mode0 + Ping
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil1dotgupta committed Dec 16, 2024
1 parent a8c9663 commit 320da92
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
23 changes: 13 additions & 10 deletions framework/src/csifw/CSIService.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions os/board/rtl8730e/src/component/os/tizenrt/rtk_wifi_csi.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ 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;
g_rtk_drv->act_param.trig_period = (interval_ms * 1000) / CSI_INTERVAL_TO_TRIG_PERIOD;
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;
Expand Down

0 comments on commit 320da92

Please sign in to comment.