summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bluetooth.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bluetooth.c b/lib/bluetooth.c
index 875119bb8..d064f9ed0 100644
--- a/lib/bluetooth.c
+++ b/lib/bluetooth.c
@@ -109,11 +109,7 @@ int str2ba(const char *str, bdaddr_t *ba)
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]);
+ return sprintf(str, "%2.2X-%2.2X-%2.2X", ba->b[5], ba->b[4], ba->b[3]);
}
int bachk(const char *str)