nl80211: Ignore Connect failure for the previous association
authorJithu Jance <jithu@broadcom.com>
Wed, 3 Dec 2014 13:24:40 +0000 (18:54 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 3 Dec 2014 22:34:08 +0000 (00:34 +0200)
commit0d4e3d1d13b2fd28128f10bc7f455034bc1bbcbb
tree2e09dc9e93a4359398d9d7685118f52f65d88004
parent16689c7cfc99c66aecbf16eb2f4a8bc941cb5d0f
nl80211: Ignore Connect failure for the previous association

Suppose there are two APs (AP1 & AP2) and user attempted to connect to
AP2 before the previous connection with AP1 could succeed. Now, if the
connection event comes for the older AP with failed status, we should
just ignore it as the wpa_supplicant state has moved to "ASSOCIATING"
with the new AP (AP2).

This is a similar to the case where a disconnection event is ignored for
a case where local disconnect request can cause the extra event to show
up during the next association process following that command.

Signed-off-by: Jithu Jance <jithu@broadcom.com>
src/drivers/driver_nl80211.c
src/drivers/driver_nl80211_event.c