Clean up the Wifi internal state when chip reconfiguration fails.

Need to clean the internal state when calling HAL to configure chip or
received HAL callback event of chip reconfiguration failure.

Bug: 201976564
Test: Manual wifi test. Inject failure in InterfaceTool::SetUpState and turn on Wifi,
check the "Teardown Wifi internal state" log.

Change-Id: I2a3f719555fd78d83d285379946cb742e7c9a6d9
(cherry picked from commit ef9bc5fb2e8d74ed931ff4b1ff5108e6ba77f6cf)
1 file changed