Browse Source

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 <j@w1.fi>
Jouni Malinen 13 years ago
parent
commit
36ba8581f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/p2p/p2p_group.c

+ 1 - 1
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;