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. --- android/pan.c | 1 - 1 file changed, 1 deletion(-) diff --git a/android/pan.c b/android/pan.c index 972af89..511f4fd 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; -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html