tests: Fix WEXT testing
authorJouni Malinen <j@w1.fi>
Sat, 14 May 2016 15:59:47 +0000 (18:59 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 14 May 2016 15:59:47 +0000 (18:59 +0300)
commit50d06776c6c638121e9630ef9cde7a477b04563d
treee68615bbeaa4172740769071adad8362045b2d33
parenta185e9b10b8dfbc21cffb99bda1e3e3ec32524ff
tests: Fix WEXT testing

Commit afb2e8b8913f131e5fb3a1031aacae3ab2b91287 ('tests: Store P2P
Device ifname in class WpaSupplicant') did not take into account the
possibility of capa.flags not existing in get_driver_status() and broke
WEXT test cases. Fix this by checking that capa.flags is present before
looking at its value.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/wpasupplicant.py