Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a543010 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Dont disable AP for tether failures

Bug: 2524514
Change-Id: I8a59e717c5b36b83adbed43184fd45d7cbfedd9a
parent cc17ed29
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -308,13 +308,17 @@ public class WifiService extends IWifiManager.Stub {
                        }
                    } catch (Exception e) {
                        Slog.e(TAG, "Error configuring interface " + intf + ", :" + e);
                        try {
                            nwService.stopAccessPoint();
                        } catch (Exception ee) {
                            Slog.e(TAG, "Could not stop AP, :" + ee);
                        }
                        setWifiApEnabledState(WIFI_AP_STATE_FAILED, 0, DriverAction.DRIVER_UNLOAD);
                        return;
                    }

                    if(mCm.tether(intf) != ConnectivityManager.TETHER_ERROR_NO_ERROR) {
                        Slog.e(TAG, "Error tethering "+intf);
                        setWifiApEnabledState(WIFI_AP_STATE_FAILED, 0, DriverAction.DRIVER_UNLOAD);
                    }
                    break;
                }