]> git.ipfire.org Git - thirdparty/hostap.git/commit
RSN: Report completion only after IGTK configuration
authorJouni Malinen <jouni@codeaurora.org>
Tue, 16 Apr 2019 08:51:43 +0000 (11:51 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 16 Apr 2019 16:31:08 +0000 (19:31 +0300)
commitdfdabd917ad9950b643bf90b6e95f5c3856662e6
treefc953464f3716def8b728d4af199217d2c8193e8
parentbce3d4f70edd5e02e7fc8f6e790d06b43eea4db4
RSN: Report completion only after IGTK configuration

Previously wpa_supplicant_key_neg_complete() was called before the
attempt to configure the IGTK received from the authenticator. This
could resulted in somewhat surprising sequence of events if IGTK
configuration failed since completion event would be followed by
immediate disconnection event. Reorder these operations so that
completion is reported only if GTK and IGTK are configurated
successfully.

Furthermore, check for missing GTK KDE in case of RSN and handle that
with an explicit disconnection instead of waiting for the AP to deliver
the GTK later.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/rsn_supp/wpa.c