summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/java/com/android/server/wifi/WifiVendorHal.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiVendorHal.java b/service/java/com/android/server/wifi/WifiVendorHal.java
index f5b118795..0d73459b5 100644
--- a/service/java/com/android/server/wifi/WifiVendorHal.java
+++ b/service/java/com/android/server/wifi/WifiVendorHal.java
@@ -543,11 +543,15 @@ public class WifiVendorHal {
private boolean retrieveWifiChip(IWifiIface iface) {
synchronized (sLock) {
+ boolean registrationNeeded = mIWifiChip == null;
mIWifiChip = mHalDeviceManager.getChip(iface);
if (mIWifiChip == null) {
mLog.err("Failed to get the chip created for the Iface").flush();
return false;
}
+ if (!registrationNeeded) {
+ return true;
+ }
if (!registerChipCallback()) {
mLog.err("Failed to register chip callback").flush();
return false;