summaryrefslogtreecommitdiff
path: root/android/pan.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-02-06 16:28:36 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-02-07 11:21:22 +0200
commit800c6b667868c58320a9f488daf8058af05d7f41 (patch)
treea539a2053df48f6b94a2586506b020f5bbc9c322 /android/pan.c
parent92cdd7a646414d3d3edff42dd9e05699bc7a870f (diff)
downloadbluez-800c6b667868c58320a9f488daf8058af05d7f41.tar.gz
profiles/network: Allow to pass interface name to bnep_new
Diffstat (limited to 'android/pan.c')
-rw-r--r--android/pan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/pan.c b/android/pan.c
index 6b19120bb..b8d740469 100644
--- a/android/pan.c
+++ b/android/pan.c
@@ -52,6 +52,7 @@
#define SVC_HINT_NETWORKING 0x02
#define BNEP_BRIDGE "bnep"
+#define BNEP_PANU_INTERFACE "bt-pan"
#define FORWARD_DELAY_PATH "/sys/class/net/"BNEP_BRIDGE"/bridge/forward_delay"
static bdaddr_t adapter_addr;
@@ -202,7 +203,7 @@ static void connect_cb(GIOChannel *chan, GError *err, gpointer data)
sk = g_io_channel_unix_get_fd(dev->io);
- dev->session = bnep_new(sk, l_role, r_role);
+ dev->session = bnep_new(sk, l_role, r_role, BNEP_PANU_INTERFACE);
if (!dev->session)
goto fail;