feat(wpa2): add wpa2_enterprise to esp8266

This commit is contained in:
Chen Wen
2019-09-25 19:34:49 +08:00
parent 96c6e0fc5b
commit 95ed4d1e50
113 changed files with 28437 additions and 33 deletions

View File

@ -86,6 +86,9 @@ static void esp_wifi_set_debug_log()
#endif
#if CONFIG_ESP8266_WIFI_DEBUG_LOG_SUBMODULE_FRAG
wifi_log_submodule |= WIFI_LOG_SUBMODULE_FRAG;
#endif
#if CONFIG_ESP8266_WIFI_DEBUG_LOG_SUBMODULE_WPA2
wifi_log_submodule |= WIFI_LOG_SUBMODULE_WPA2;
#endif
esp_wifi_internal_set_log_level(wifi_log_level);
esp_wifi_internal_set_log_mod(wifi_log_submodule);

View File

@ -145,3 +145,27 @@ void *__wifi_task_top_sp(void)
return pxCurrentTCB[0];
}
void* __wifi_semphr_create(uint32_t max, uint32_t init)
{
return (void*)xSemaphoreCreateCounting(max, init);
}
void __wifi_semphr_delete(void* semphr)
{
vSemaphoreDelete(semphr);
}
int32_t __wifi_semphr_take(void* semphr, uint32_t block_time_tick)
{
if (block_time_tick == OSI_FUNCS_TIME_BLOCKING) {
return (int32_t)xSemaphoreTake(semphr, portMAX_DELAY);
} else {
return (int32_t)xSemaphoreTake(semphr, block_time_tick);
}
}
int32_t __wifi_semphr_give(void* semphr)
{
return (int32_t)xSemaphoreGive(semphr);
}