nl80211: Ignore auth/assoc events when testing driver-SME
authorJouni Malinen <j@w1.fi>
Sat, 27 Sep 2014 09:53:17 +0000 (12:53 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 27 Sep 2014 13:12:41 +0000 (16:12 +0300)
commitb497a2126776378f34241d2b378790eeb2ad7f4c
treec898eadeab141e4b0aee066ef6dd31f16805d594
parent377babb205a8f3b7cb711f623682a29c84416a78
nl80211: Ignore auth/assoc events when testing driver-SME

Previously, extra connect/roam events were ignored when user space SME
was used to avoid confusing double events for association. However,
there was no matching code for ignoring auth/assoc events when using
driver SME. Such events would not normally show up since the driver SME
case would not generated them. However, when testing forced connect
command with force_connect_cmd=1 driver param, these events are
indicated.

Ignore the extra events in testing cases to make the hwsim test cases
match more closely the real code path for driver SME. In addition, this
resolves some test case failures where double association event could
end up causing a failure, e.g., when doing PMKSA caching in
pmksa_cache_oppurtunistic_connect.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c