]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Do not indicate incorrect PBC overlap based on partner link
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 20 Jan 2023 17:08:07 +0000 (19:08 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 20 Jan 2023 17:08:07 +0000 (19:08 +0200)
commit831be651494e45e49e04139b744deeaf5285003a
treefaf11d0c58262ec8ed8d58cdd6422cb5d501661b
parent48cb42182f1c2ca0cd99cb22120d40975ec6dee5
WPS: Do not indicate incorrect PBC overlap based on partner link

The check for PBC overlap on a partner link should not be done unless
the current interface is actually in active PBC mode. Furthermore, the
wpa_s->wps_overlap variable needs to be cleared in additional places to
avoid leaving it set indefinitely.

This was found with the following test case sequence:
dbus_wps_pbc_overlap dbus_p2p_two_groups

Fixes: b43e19f3f369 ("WPS: Cross band overlap detection with multiple interfaces")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wpa_supplicant/events.c
wpa_supplicant/wps_supplicant.c