From 36ba8581f7f61e77374f0b7d21252a3e9e38d77d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 11 Dec 2011 17:07:41 +0200 Subject: [PATCH] P2P: Reject Presence Request if current NoA cannot be fetched It is safer to assume that the driver could be using NoA and reject any Presence Request unless we are sure that noa NoA is in use. Signed-hostap: Jouni Malinen --- src/p2p/p2p_group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p2p/p2p_group.c b/src/p2p/p2p_group.c index c34a92f01..59d1507b3 100644 --- a/src/p2p/p2p_group.c +++ b/src/p2p/p2p_group.c @@ -670,7 +670,7 @@ u8 p2p_group_presence_req(struct p2p_group *group, curr_noa_len); /* TODO: properly process request and store copy */ - if (curr_noa_len > 0) + if (curr_noa_len > 0 || curr_noa_len == -1) return P2P_SC_FAIL_UNABLE_TO_ACCOMMODATE; return P2P_SC_SUCCESS;