[PATCH] P2P: Do not expire GO peer entry during group rekeying
Piotr.Nakraszewicz at tieto.com
Piotr.Nakraszewicz
Wed Feb 8 05:34:09 PST 2012
Hi,
If wpas_go_connected() is called during group rekeying the P2P GO peer will expire.
To prevent that check if group rekeying is not in progress.
---
wpa_supplicant/p2p_supplicant.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index ec4ba4a..b3f4a94 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -2222,7 +2222,8 @@ static int wpas_go_connected(void *ctx, const u8 *dev_addr)
continue;
if (ssid->mode != WPAS_MODE_INFRA)
continue;
- if (wpa_s->wpa_state != WPA_COMPLETED)
+ if (wpa_s->wpa_state != WPA_COMPLETED &&
+ wpa_s->wpa_state != WPA_GROUP_HANDSHAKE)
continue;
if (os_memcmp(wpa_s->go_dev_addr, dev_addr, ETH_ALEN) == 0)
return 1;
--
1.7.0.4
Pozdrawiam / Best regards,
Piotr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-P2P-Do-not-expire-GO-peer-entry-during-group-rekeyin.patch
Type: application/octet-stream
Size: 969 bytes
Desc: 0001-P2P-Do-not-expire-GO-peer-entry-during-group-rekeyin.patch
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20120208/d287f7f2/attachment.obj
More information about the Hostap
mailing list