commit | fbffab1eb307318b9d464393ad5453fa8dffc67c | [log] [tgz] |
---|---|---|
author | Sunil <sunilravi@google.com> | Thu Jun 16 01:59:11 2022 +0000 |
committer | Sunil Ravi <sunilravi@google.com> | Thu Jun 16 17:36:41 2022 -0700 |
tree | 8d4758597df81bdf955ea447a81146809c3e549c | |
parent | c150e743dde1ab3070d209eb430bb6ff73adca14 [diff] |
Register HAL event callback only if IWifi is ready Added NULL check for mWifi to avoid NULL pointer exception. Also removed synchronized block from stopWifi() method as the callers are already calling stopWifi() inside the synchronized block. Bug: 236099650 Test: atest com.android.server.wifi Test: Manual - removed the driver module(.ko) from file system & confirmed that device is not crashing on truning ON wifi Change-Id: If20d20c4ef22942b228b785fdefa43e24cb1127f