aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-12-11 15:07:41 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-11 15:07:41 (GMT)
commit36ba8581f7f61e77374f0b7d21252a3e9e38d77d (patch)
treeca712a23048612d01fec8a5ce760d05053f86608 /src
parent05ab9712b9977192b713f01f07c3b14ca4d1ba78 (diff)
downloadhostap-36ba8581f7f61e77374f0b7d21252a3e9e38d77d.zip
hostap-36ba8581f7f61e77374f0b7d21252a3e9e38d77d.tar.gz
hostap-36ba8581f7f61e77374f0b7d21252a3e9e38d77d.tar.bz2
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>
Diffstat (limited to 'src')
-rw-r--r--src/p2p/p2p_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/p2p_group.c b/src/p2p/p2p_group.c
index c34a92f..59d1507 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;