diff options
author | Jouni Malinen <j@w1.fi> | 2011-12-11 17:07:41 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-12-11 17:07:41 +0200 |
commit | 36ba8581f7f61e77374f0b7d21252a3e9e38d77d (patch) | |
tree | ca712a23048612d01fec8a5ce760d05053f86608 /src/p2p | |
parent | 05ab9712b9977192b713f01f07c3b14ca4d1ba78 (diff) | |
download | external_wpa_supplicant_8_ti-36ba8581f7f61e77374f0b7d21252a3e9e38d77d.zip external_wpa_supplicant_8_ti-36ba8581f7f61e77374f0b7d21252a3e9e38d77d.tar.gz external_wpa_supplicant_8_ti-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/p2p')
-rw-r--r-- | src/p2p/p2p_group.c | 2 |
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; |