esp_wifi_init_internal() function
Initialize Wi-Fi Driver Alloc resource for WiFi driver, such as WiFi control structure, RX/TX buffer, WiFi NVS structure among others. For the most part, you need not call this function directly. It gets called from esp_wifi_init(). This function may be called, if you only need to initialize the Wi-Fi driver without having to use the network stack on top.
Arguments
config
provide WiFi init configuration
Return value
- ESP_OK: succeed - ESP_ERR_NO_MEM: out of memory - others: refer to error code esp_err.h