From: Jouni Malinen Date: Sun, 11 Dec 2011 15:07:41 +0000 (+0200) Subject: P2P: Reject Presence Request if current NoA cannot be fetched X-Git-Tag: aosp-jb-start~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36ba8581f7f61e77374f0b7d21252a3e9e38d77d;p=thirdparty%2Fhostap.git 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 --- 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;