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

Commit 50a928f4 authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android (Google) Code Review
Browse files

Merge "Avoid turning off wifi tethering on interface down"

parents f6d08b95 14f3ae7f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1101,13 +1101,11 @@ public class WifiStateMachine extends StateMachine {
                        }
                    } catch (Exception e) {
                        Log.e(TAG, "Error configuring interface " + intf + ", :" + e);
                        setWifiApEnabled(null, false);
                        return false;
                    }

                    if(mCm.tether(intf) != ConnectivityManager.TETHER_ERROR_NO_ERROR) {
                        Log.e(TAG, "Error tethering on " + intf);
                        setWifiApEnabled(null, false);
                        return false;
                    }
                    return true;