P2P: Fix return value of p2p_reply_probe() and p2p_probe_req_rx()
authorMax Stepanov <Max.Stepanov@intel.com>
Wed, 10 Jun 2015 08:43:33 +0000 (11:43 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 14 Jun 2015 20:16:55 +0000 (23:16 +0300)
commit5143e7ee6e9d34d7715de57cb9ea2e658c3fa319
treea26ed762dead6981ba8048b750a47fd961864002
parent07c1e987d51c908e95cf924fb5589722ef06a7d2
P2P: Fix return value of p2p_reply_probe() and p2p_probe_req_rx()

Return P2P_PREQ_PROCESSED instead of P2P_PREQ_NOT_PROCESSED on
a successful Probe Request frame handling in p2p_reply_probe().

Verify a return value of p2p_reply_probe() in p2p_probe_req_rx()
and continue a pending invitation/connection flow only if the
Probe Request frame is from an expected P2P peer.

Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
src/p2p/p2p.c