tests: Work around iw scan getting stuck
authorJohannes Berg <johannes.berg@intel.com>
Fri, 17 Jul 2015 20:24:58 +0000 (22:24 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Aug 2015 18:37:10 +0000 (21:37 +0300)
commit3dfa519c3252df42ea1c04519acd8fa43a5a998f
tree6caf77d137ad16cda77dc7edf8382a7b3a1e2f61
parenta0e117c684dddf4b1979635a397c25b295c8b94e
tests: Work around iw scan getting stuck

On recent kernels, it seems that something changed (scheduler?)
that makes hwsim send the scan done event so quickly that iw isn't
scheduled back in to listen for it, causing iw to get stuck.

Work around this by using the scan trigger command (it'll be quick
enough so that we don't really need to wait) and the scan trigger
and dump commands where the results are required (and use a small
sleep there instead of waiting for the scan results.)

I'll try to fix this separately in iw later.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
tests/hwsim/test_ap_ht.py