]> git.ipfire.org Git - thirdparty/hostap.git/commit
Mark authorization completed on driver indication during 4-way HS offload
authorVinayak Yadawad <vinayak.yadawad@broadcom.com>
Thu, 30 Jun 2022 04:07:53 +0000 (09:37 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 27 Nov 2022 12:18:53 +0000 (14:18 +0200)
commit41638606054a09867fe3f9a2b5523aa4678cbfa5
tree8e1f2d278f0a0f94612dc101bd9adc59421a6c3c
parentda2ec9459c461866bd112dd9759d4628121ba6c4
Mark authorization completed on driver indication during 4-way HS offload

In case of drivers supporting 4-way handshake offload, mark port
authorized and state completion only if the driver advertizes authorized
state in the connect event. Otherwise there are fair chances of the
driver port authorization API getting called while 4-way handshake is in
progress at the lower layer.

In order to avoid this possible race condition always update port
authorization and supplicant state WPA_COMPLETED setting from
EVENT_PORT_AUTHORIZED context when the driver is done with the 4-way
handshake.

Signed-off-by: Vinayak Yadawad <vinayak.yadawad@broadcom.com>
wpa_supplicant/events.c