summaryrefslogtreecommitdiffstats
path: root/btio
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-01-17 11:47:59 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-01-17 11:48:24 +0100
commitf9fac7100b08e24509fdc6f12ea9c34e28876586 (patch)
treeebbac4356342a319984d0169a199dd58307ec4ef /btio
parentb2ed1b1ac486a049c42a5dc2ae48b255ce617baf (diff)
downloadofono-f9fac7100b08e24509fdc6f12ea9c34e28876586.tar.bz2
btio: Remove support for hciX source addresses
Diffstat (limited to 'btio')
-rw-r--r--btio/btio.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/btio/btio.c b/btio/btio.c
index 0d177a3a..a45a9cc3 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -33,8 +33,6 @@
#include <bluetooth/l2cap.h>
#include <bluetooth/rfcomm.h>
#include <bluetooth/sco.h>
-#include <bluetooth/hci.h>
-#include <bluetooth/hci_lib.h>
#include <glib.h>
@@ -691,10 +689,7 @@ static gboolean parse_set_opts(struct set_opts *opts, GError **err,
switch (opt) {
case BT_IO_OPT_SOURCE:
str = va_arg(args, const char *);
- if (strncasecmp(str, "hci", 3) == 0)
- hci_devba(atoi(str + 3), &opts->src);
- else
- str2ba(str, &opts->src);
+ str2ba(str, &opts->src);
break;
case BT_IO_OPT_SOURCE_BDADDR:
bacpy(&opts->src, va_arg(args, const bdaddr_t *));