tests: Add p2ps_provision() method
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 13 Jul 2015 06:49:11 +0000 (09:49 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 26 Jul 2015 18:45:35 +0000 (21:45 +0300)
commit4796021088bf7ae40cc46265e7cfb1266e666e67
tree5338936e14006262e6db61a0a92056feda5e36c1
parent1a1b015622e8acc6f5319e27c651a89496a63d6b
tests: Add p2ps_provision() method

Add generic provision method. This method receives a seeker and an
advertiser devices, advertisement id, method, and a flag which indicates
whether deferred flow is expected. The method returns P2PS-PROV-DONE
events and the pin (if keypad or display method is used).

This method is needed to simplify the P2PS provision flows in the tests.
This method complies to the P2PS specification regarding the expected
order of the show and display PIN events.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Reviewed-by: Max Stepanov <Max.Stepanov@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
tests/hwsim/test_p2ps.py