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

@@ -107,11 +107,10 @@ void wpa_sm_free_eapol(u8 *buffer)
void wpa_sm_deauthenticate(struct wpa_sm *sm, u8 reason_code)
{
/*only need send deauth frame when associated*/
if (WPA_SM_STATE(sm) >= WPA_ASSOCIATED) {
pmksa_cache_clear_current(sm);
sm->wpa_deauthenticate(reason_code);
wpa_deauthenticate(reason_code);
}
}