summaryrefslogtreecommitdiff
path: root/include/net/bluetooth/hci_sock.h
diff options
context:
space:
mode:
authorAlain Michaud <alainm@chromium.org>2020-06-11 14:26:10 +0000
committerMarcel Holtmann <marcel@holtmann.org>2020-06-12 15:10:46 +0200
commit32929e1f4ad9adf71f655028e4dd5d87adb97f52 (patch)
tree0758a252b7ab8ee41f8a3b60668cab8b12223d8a /include/net/bluetooth/hci_sock.h
parent00398e1d518309328e8ba7dff00881538ac22c6a (diff)
Bluetooth: Use only 8 bits for the HCI CMSG state flags
This change implements suggestions from the code review of the SCO CMSG state flag patch. Signed-off-by: Alain Michaud <alainm@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci_sock.h')
-rw-r--r--include/net/bluetooth/hci_sock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/bluetooth/hci_sock.h b/include/net/bluetooth/hci_sock.h
index 9352bb1bf34c..9949870f7d78 100644
--- a/include/net/bluetooth/hci_sock.h
+++ b/include/net/bluetooth/hci_sock.h
@@ -31,8 +31,8 @@
#define HCI_TIME_STAMP 3
/* CMSG flags */
-#define HCI_CMSG_DIR 0x0001
-#define HCI_CMSG_TSTAMP 0x0002
+#define HCI_CMSG_DIR 0x01
+#define HCI_CMSG_TSTAMP 0x02
struct sockaddr_hci {
sa_family_t hci_family;