esp_wifi: fully support connectionless traffic with ps and coex

This commit is contained in:
liuning
2022-03-15 17:08:12 +08:00
committed by BOT
parent 0ae391ef07
commit e0decf4839
12 changed files with 68 additions and 29 deletions

View File

@@ -646,6 +646,15 @@ static int coex_schm_curr_phase_idx_get_wrapper(void)
#endif
}
static int coex_register_start_cb_wrapper(int (* cb)(void))
{
#if CONFIG_SW_COEXIST_ENABLE
return coex_register_start_cb(cb);
#else
return 0;
#endif
}
static void IRAM_ATTR esp_empty_wrapper(void)
{
@@ -773,6 +782,7 @@ wifi_osi_funcs_t g_wifi_osi_funcs = {
._coex_schm_curr_phase_get = coex_schm_curr_phase_get_wrapper,
._coex_schm_curr_phase_idx_set = coex_schm_curr_phase_idx_set_wrapper,
._coex_schm_curr_phase_idx_get = coex_schm_curr_phase_idx_get_wrapper,
._coex_register_start_cb = coex_register_start_cb_wrapper,
._magic = ESP_WIFI_OS_ADAPTER_MAGIC,
};