]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Reject Presence Request if current NoA cannot be fetched
authorJouni Malinen <j@w1.fi>
Sun, 11 Dec 2011 15:07:41 +0000 (17:07 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 11 Dec 2011 15:07:41 +0000 (17:07 +0200)
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 <j@w1.fi>

src/p2p/p2p_group.c

index c34a92f017d42730d4d3f5170fd2bcb385a32848..59d1507b3a288331363780a18c331cfa18e781fe 100644 (file)
@@ -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;