Add state check in authentication timeout handler
Some driver implementation takes more than 10 seconds
to report association rejection. This leads to authentication
timeout to fire before association rejection event from driver.
On such drivers the connection failure will be reported as
authentication failure. If the failure happens in very first
connection attempt, it is wrongly reported as wrong password. So
added the last supplicant state check in authentication timeout
handler in detecting the wrong password error.
Bug: 285495246
Test: SupplicantStaIfaceHalAidlImplTest
Test: SupplicantStaIfaceHalHidlImplTest
Test: Manual - Tried to connect with wrong password and confirmed that
wrong password notification is seen in UI.
Change-Id: I7c4088eb805944f9503fb21681d8532619dd63d5
4 files changed