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>
This commit is contained in:
Jouni Malinen 2011-12-11 17:07:41 +02:00
parent 05ab9712b9
commit 36ba8581f7

View file

@ -670,7 +670,7 @@ u8 p2p_group_presence_req(struct p2p_group *group,
curr_noa_len); curr_noa_len);
/* TODO: properly process request and store copy */ /* 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_FAIL_UNABLE_TO_ACCOMMODATE;
return P2P_SC_SUCCESS; return P2P_SC_SUCCESS;