P2PS: Refactor p2p_data::query_hash and p2p_data::query_count use
authorMax Stepanov <Max.Stepanov@intel.com>
Wed, 10 Jun 2015 08:43:46 +0000 (11:43 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 15 Jun 2015 14:30:01 +0000 (17:30 +0300)
commite12c4004e4764bf6360bb617cf25ef7529c4d59f
tree624f7a260431c4f6f578fdafd6d118aca309d616
parent866eb800e5514b0a0fc1b2574c70f3e237e61e8f
P2PS: Refactor p2p_data::query_hash and p2p_data::query_count use

Avoid using p2p_data::query_hash for both Probe Request frame processing
and for hashes specified by p2p_find. It's resolved by use of local
query_hash and query_count variables in p2p_reply_probe().

Since p2p_data::query_hash is used only for seek hash values rename
p2p_data::query_hash to p2ps_seek_hash.

Delete p2p_data::query_count since it's not needed anymore.

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