3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

netdev: remove in_ft checks and set_use_eapol_start

In both netdev_{authenticate,associate}_event there is no need to check
for in_ft at the start since netdev->ap will always be set if in_ft is
set.

There was also no need to set eapol_sm_set_use_eapol_start, as setting
require_handshake implies this and achieves the same result when starting
the SM.
This commit is contained in:
James Prestwood 2019-05-07 12:46:48 -07:00 committed by Denis Kenzior
parent 567f35c32f
commit ce7df37132

View File

@ -1859,7 +1859,7 @@ static void netdev_authenticate_event(struct l_genl_msg *msg,
* the FT Associate command is included in the attached frame and is * the FT Associate command is included in the attached frame and is
* not available in the Authenticate command callback. * not available in the Authenticate command callback.
*/ */
if (!netdev->in_ft && !netdev->ap) if (!netdev->ap)
return; return;
if (!l_genl_attr_init(&attr, msg)) { if (!l_genl_attr_init(&attr, msg)) {
@ -1925,7 +1925,7 @@ static void netdev_associate_event(struct l_genl_msg *msg,
if (!netdev->connected || netdev->aborting) if (!netdev->connected || netdev->aborting)
return; return;
if (!netdev->in_ft && !netdev->handshake->mde && !netdev->ap) if (!netdev->ap)
return; return;
if (!l_genl_attr_init(&attr, msg)) { if (!l_genl_attr_init(&attr, msg)) {
@ -1973,7 +1973,6 @@ static void netdev_associate_event(struct l_genl_msg *msg,
if (netdev->in_ft) { if (netdev->in_ft) {
eapol_sm_set_require_handshake(netdev->sm, eapol_sm_set_require_handshake(netdev->sm,
false); false);
eapol_sm_set_use_eapol_start(netdev->sm, false);
netdev->in_ft = false; netdev->in_ft = false;
} }