summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2015-03-03 17:59:45 +0100
committerSzymon Janc <szymon.janc@tieto.com>2015-03-09 16:02:41 +0100
commit7aa3ff73cab969ad5c400a7d8ff8dc2de4601622 (patch)
tree3aa05209ed46ce4060596d2c7d9686ac7f5e9059
parent1bc0495a750103d1f491cd24a799c3d708ddd762 (diff)
downloadbluez-7aa3ff73cab969ad5c400a7d8ff8dc2de4601622.tar.gz
android/pan: Fix removing PAN NAP bridge
PAN NAP bridge shouldn't be removed if bnep server add fails. Pan device remove function is decreasing amount of connected devices, if count will be zero - NAP bridge will be removed.
-rw-r--r--android/pan.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/android/pan.c b/android/pan.c
index 972af89b8..511f4fdeb 100644
--- a/android/pan.c
+++ b/android/pan.c
@@ -517,7 +517,6 @@ static gboolean nap_setup_cb(GIOChannel *chan, GIOCondition cond,
if (bnep_server_add(sk, dst_role, BNEP_BRIDGE, dev->iface,
&dev->dst) < 0) {
- nap_remove_bridge();
error("server_connadd failed");
rsp = BNEP_CONN_NOT_ALLOWED;
goto failed;