Skip WPS PBC overlap detection if P2P address is the same
authorVitaly Wool <vitalywool@gmail.com>
Sun, 11 Dec 2011 10:03:18 +0000 (12:03 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 11 Dec 2011 10:03:18 +0000 (12:03 +0200)
commitc3daaf3325563ccbe0d8c3a8c8b729683a9d68c2
treed6646bbac99a9b168d4e1b4a1b535f1b28b6c395
parent5ed3354617fc252d16079c11203062c14049ac55
Skip WPS PBC overlap detection if P2P address is the same

WPS overlap detection can detect false overlap if a P2P peer
changes UUID while authentication is ongoing. Changing UUID
is of course wrong but this is what some popular devices do
so we need to work around it in order to keep compatibility
with these devices. There already is a mechanism in WPS
registrar to skip overlap detection if P2P addresses of two
sessions match but it wasn't really triggered because the
address wasn't filled in in the caller function.

Let's fill in this address and also clean up WPS PBC sessions
on WSC process completion if UUID was changed.

Signed-hostap: Vitaly Wool<vitalywool@gmail.com>
src/wps/wps_registrar.c
wpa_supplicant/p2p_supplicant.c