Skip to content

Commit d585729

Browse files
Andrii Beregovenkovishalmti
authored andcommitted
WifiWatchdog: handle exception from ArpPeer
Sometimes IllegalArgumantException can happen in constructor of ArpPeer class when IPv6 address is provided. This causes crash of systemserver. Fixing it by adding appropriate exception handler Change-Id: I4bb7bbca790745a1bf56ece96dd91b84b1f70cad Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com> Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
1 parent 6d0dd51 commit d585729

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wifi/java/android/net/wifi/WifiWatchdogStateMachine.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,9 @@ private boolean doArpTest(int type) {
881881
//test to avoid any wifi connectivity issues
882882
loge("ARP test initiation failure: " + se);
883883
success = true;
884+
} catch (IllegalArgumentException ae) {
885+
log("ARP test initiation failure: " + ae);
886+
success = true;
884887
}
885888

886889
return success;

0 commit comments

Comments
 (0)