diff options
-rw-r--r-- | service/java/com/android/server/wifi/SupplicantStaIfaceHal.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/SupplicantStaIfaceHal.java b/service/java/com/android/server/wifi/SupplicantStaIfaceHal.java index 657b081dd..667abfe35 100644 --- a/service/java/com/android/server/wifi/SupplicantStaIfaceHal.java +++ b/service/java/com/android/server/wifi/SupplicantStaIfaceHal.java @@ -527,6 +527,10 @@ public class SupplicantStaIfaceHal { Log.e(TAG, "ISupplicant.addInterface exception: " + e); handleNoSuchElementException(e, "addInterface"); return null; + } catch (IllegalArgumentException e) { + handleIllegalArgumentException(e, "addInterface"); + Log.e(TAG, "ISupplicant.addInterface exception: " + e); + return null; } return supplicantIface.value; } @@ -2593,6 +2597,13 @@ public class SupplicantStaIfaceHal { } } + private void handleIllegalArgumentException(IllegalArgumentException e, String methodStr) { + synchronized (mLock) { + clearState(); + Log.e(TAG, "ISupplicantStaIface." + methodStr + " failed with exception", e); + } + } + /** * Converts the Wps config method string to the equivalent enum value. */ |