]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
P2PS: Authorize any peer for P2PS method if interface address not known
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Thu, 30 Jul 2015 06:00:06 +0000 (09:00 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 6 Aug 2015 17:45:15 +0000 (20:45 +0300)
commitb9da88d6c17f34bea6f272c34b28c088307c3727
tree22e442148b3afef7ff61800a3ada2a5c453dff4d
parent2a098e3668fc5a3e2807e3b35f2583a6e3b94833
P2PS: Authorize any peer for P2PS method if interface address not known

When P2PS PD with default P2PS method is done, the peer that becomes GO
should authorize the client. However, P2PS specification doesn't require
the client to include its intended interface address in PD
Request/Response. As a result, the P2P Client's interface address may not
be known and any address may need to be authorized.

Previously, client's P2P Device Address was used for authorization,
which is not correct when a dedicated interface is used for P2P Client.
This is not resulting in a connection failure, however it causes a
significant delay (until WPS_PIN_TIME_IGNORE_SEL_REG elapses). Fix this
by authorizing the intended interface address, if known; or any address,
if not known.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
wpa_supplicant/ctrl_iface.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wpa_supplicant_i.h