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:
parent
05ab9712b9
commit
36ba8581f7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue