summaryrefslogtreecommitdiffstats
path: root/src/bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth.c')
-rw-r--r--src/bluetooth.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bluetooth.c b/src/bluetooth.c
index 484b263b..0f4c49e6 100644
--- a/src/bluetooth.c
+++ b/src/bluetooth.c
@@ -106,6 +106,14 @@ int str2ba(const char *str, bdaddr_t *ba)
return 0;
}
+int ba2oui(const bdaddr_t *ba, char *str)
+{
+ uint8_t b[6];
+
+ baswap((bdaddr_t *) b, ba);
+ return sprintf(str, "%2.2X-%2.2X-%2.2X", b[0], b[1], b[2]);
+}
+
int baprintf(const char *format, ...)
{
va_list ap;