mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-26 18:14:11 +00:00
esp_wifi: Remove unnecessary function pointer from wpa_sm_init
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user