]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Drop not needed condition to delete PTK ID 1
authorAlexander Wetzel <alexander@wetzel-home.de>
Mon, 23 Mar 2020 18:42:27 +0000 (19:42 +0100)
committerJouni Malinen <j@w1.fi>
Sun, 29 Mar 2020 18:15:16 +0000 (21:15 +0300)
Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
src/ap/wpa_auth.c

index d04b5e7652a057e8551aed694b2c0b53baaf3183..e0ffb271880baa780bf8280943a3b55fbcfefe51 100644 (file)
@@ -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,