[PATCH] Patch:P2P When UUID gets changed and more pbc session entr=
Neeraj Garg
neerajkg
Thu May 24 01:31:40 PDT 2012
ies are created, remove logic should check for loop entry address
Signed-off-by: Neeraj Garg <neerajkg at broadcom.com>
---
src/wps/wps_registrar.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
mode change 100644 =3D> 100755 src/wps/wps_registrar.c
diff --git a/src/wps/wps_registrar.c b/src/wps/wps_registrar.c
old mode 100644
new mode 100755
index e6ec04c..678375b
--- a/src/wps/wps_registrar.c
+++ b/src/wps/wps_registrar.c
@@ -313,8 +313,8 @@ static void wps_registrar_remove_pbc_session(struct wps=
_registrar *reg,
pbc =3D reg->pbc_sessions;
while (pbc) {
if (os_memcmp(pbc->uuid_e, uuid_e, WPS_UUID_LEN) =3D=3D 0 ||
- (p2p_dev_addr && !is_zero_ether_addr(reg->p2p_dev_addr) &&
- os_memcmp(reg->p2p_dev_addr, p2p_dev_addr, ETH_ALEN) =3D=3D
+ (p2p_dev_addr && !is_zero_ether_addr(pbc->addr) &&
+ os_memcmp(pbc->addr, p2p_dev_addr, ETH_ALEN) =3D=3D
0)) {
if (prev)
prev->next =3D pbc->next;
--=20
1.7.4.1
Regards,
-Neeraj
More information about the Hostap
mailing list