projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60f2a3e
)
Bluetooth: Replace BDADDR_LOCAL with BDADDR_NONE
author
Marcel Holtmann
<
[email protected]
>
Wed, 2 Oct 2013 05:59:21 +0000
(22:59 -0700)
committer
Johan Hedberg
<
[email protected]
>
Wed, 2 Oct 2013 06:09:57 +0000
(09:09 +0300)
The BDADDR_LOCAL is a relict from userspace and has never been used
within the kernel. So remove that constant and replace it with a new
BDADDR_NONE that is similar to HCI_DEV_NONE with all bits set.
Signed-off-by: Marcel Holtmann <
[email protected]
>
Signed-off-by: Johan Hedberg <
[email protected]
>
include/net/bluetooth/bluetooth.h
patch
|
blob
|
history
diff --git
a/include/net/bluetooth/bluetooth.h
b/include/net/bluetooth/bluetooth.h
index afbc711ba37a432119833ae23a0ecf853de59fec..5fd510675cfa6982dd150a0084112a541ed0f3f0 100644
(file)
--- a/
include/net/bluetooth/bluetooth.h
+++ b/
include/net/bluetooth/bluetooth.h
@@
-197,8
+197,8
@@
static inline bool bdaddr_type_is_le(__u8 type)
return false;
}
-#define BDADDR_ANY
(&(bdaddr_t) {{0, 0, 0, 0, 0, 0}
})
-#define BDADDR_
LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}
})
+#define BDADDR_ANY
(&(bdaddr_t) {{0, 0, 0, 0, 0, 0}
})
+#define BDADDR_
NONE (&(bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}
})
/* Copy, swap, convert BD Address */
static inline int bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2)