From: Alexander Wetzel Date: Mon, 23 Mar 2020 18:42:27 +0000 (+0100) Subject: AP: Drop not needed condition to delete PTK ID 1 X-Git-Tag: hostap_2_10~1517 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f88d2ba0d30fa59e92b8a809db5e737dc01cebd;p=thirdparty%2Fhostap.git AP: Drop not needed condition to delete PTK ID 1 Signed-off-by: Alexander Wetzel --- diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c index d04b5e765..e0ffb2718 100644 --- a/src/ap/wpa_auth.c +++ b/src/ap/wpa_auth.c @@ -1741,7 +1741,7 @@ void wpa_remove_ptk(struct wpa_state_machine *sm) 0, KEY_FLAG_PAIRWISE)) wpa_printf(MSG_DEBUG, "RSN: PTK removal from the driver failed"); - if (sm->wpa_auth->conf.extended_key_id && sm->use_ext_key_id && + if (sm->use_ext_key_id && wpa_auth_set_key(sm->wpa_auth, 0, WPA_ALG_NONE, sm->addr, 1, NULL, 0, KEY_FLAG_PAIRWISE)) wpa_printf(MSG_DEBUG,