summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jaikumar Ganesh <jaikumar@google.com> 2011-02-07 16:49:26 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2011-02-07 16:49:26 -0800
commit609602ed771f5c1ed159f7fdaec2e6fd52370be7 (patch)
tree5b4ee33c09357ebcce193ade333404d1a98f5e0b
parent5e2b123e483a6da1b7cff36024b12e85a0a7c382 (diff)
parent8f08ae96611a2027cece14511f63a211afed11fb (diff)
Merge "Reject incoming tethering connections if Tethering option is not enabled."
-rw-r--r--core/java/android/server/BluetoothEventLoop.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/server/BluetoothEventLoop.java b/core/java/android/server/BluetoothEventLoop.java
index e9f28fa9cc31..3316ea51f701 100644
--- a/core/java/android/server/BluetoothEventLoop.java
+++ b/core/java/android/server/BluetoothEventLoop.java
@@ -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);