tests: Wait for scan to complete on all interfaces in reset()
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Thu, 2 Jul 2015 13:14:53 +0000 (16:14 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 8 Jul 2015 13:52:42 +0000 (16:52 +0300)
commit53606b105c6df3c2f3a154b055ac142d5c380251
tree237664736321599f1117f27c9edb133bf9ce6f95
parentba53a8a0099139261e4233ae79fdfa6aae4589c1
tests: Wait for scan to complete on all interfaces in reset()

When WpaSupplicant executes reset() it waits until all the ongoing scans
are completed. However, it checks the status of the wlanX interface
only. If a dedicated P2P device interface is used, scan may be still
running on the P2P Device interface, e.g., due to P2P_FIND. This might
affect subsequent tests.

Fix this by waiting until the scan is done both on wlanX and P2P
Device interfaces.

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