esp_wifi: Remove unnecessary function pointer from wpa_sm_init

This commit is contained in:
Kapil Gupta
2022-08-29 15:16:16 +05:30
committed by BOT
parent f33ac0a037
commit cc6196ff6a
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);
}