Merge branch 'bugfix/wpa_sm_cleanup' into 'master'

esp_wifi: Remove unnecessary function pointers from wpa_sm_init

See merge request espressif/esp-idf!19833
This commit is contained in:
Jiang Jiang Jian
2022-11-04 16:45:42 +08:00
4 changed files with 18 additions and 46 deletions

View File

@@ -124,8 +124,7 @@ void wpa_neg_complete(void)
bool wpa_attach(void)
{
bool ret = true;
ret = wpa_sm_init(NULL, wpa_sendto_wrapper,
wpa_config_assoc_ie, wpa_install_key, wpa_get_key, wpa_deauthenticate, wpa_neg_complete);
ret = wpa_sm_init();
if(ret) {
ret = (esp_wifi_register_tx_cb_internal(eapol_txcb, WIFI_TXCB_EAPOL_ID) == ESP_OK);
}