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

Commit 8f08ae96 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Reject incoming tethering connections if Tethering option is not enabled.

Change-Id: I40aa08ad5a3f3a2169551bbe35682910daced098
parent 1ee31175
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -660,8 +660,7 @@ class BluetoothEventLoop {
             } else {
                 Log.i(TAG, "Rejecting incoming HID connection from " + address);
             }
        } else if (BluetoothUuid.isBnep(uuid) || BluetoothUuid.isNap(uuid) &&
                mBluetoothService.allowIncomingTethering()){
        } else if (BluetoothUuid.isBnep(uuid) && mBluetoothService.allowIncomingTethering()){
            authorized = true;
        } else {
            Log.i(TAG, "Rejecting incoming " + deviceUuid + " connection from " + address);