summaryrefslogtreecommitdiff
path: root/usr.sbin/btd/bt.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/btd/bt.c')
-rw-r--r--usr.sbin/btd/bt.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr.sbin/btd/bt.c b/usr.sbin/btd/bt.c
index 7ea19bcbb97..09313eb0cd0 100644
--- a/usr.sbin/btd/bt.c
+++ b/usr.sbin/btd/bt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bt.c,v 1.5 2008/11/26 21:48:30 uwe Exp $ */
+/* $OpenBSD: bt.c,v 1.6 2008/11/27 00:51:17 uwe Exp $ */
/*
* Copyright (c) 2008 Uwe Stuehler <uwe@openbsd.org>
@@ -370,3 +370,16 @@ bt_device_detach(struct bt_device *btdev)
return -1;
}
}
+
+int
+bt_set_interface_flags(const struct btreq *btr)
+{
+ int err;
+
+ bt_priv_msg(IMSG_SET_INTERFACE_FLAGS);
+ bt_priv_send(btr->btr_name, sizeof(btr->btr_name));
+ bt_priv_send(&btr->btr_flags, sizeof(btr->btr_flags));
+ bt_priv_recv(&err, sizeof(err));
+
+ return (errno = err) ? -1 : 0;
+}