summaryrefslogtreecommitdiff
path: root/include/net/bluetooth/sco.h
diff options
context:
space:
mode:
authorAlain Michaud <alainm@chromium.org>2020-06-11 19:50:41 +0000
committerMarcel Holtmann <marcel@holtmann.org>2020-06-12 15:08:49 +0200
commit00398e1d518309328e8ba7dff00881538ac22c6a (patch)
treefee6d7195b2ab8a2268b5ddcc9ac63ef56271980 /include/net/bluetooth/sco.h
parente660b3510eb4b3c06ce1188a1d305b6f653106fc (diff)
downloadlinux-00398e1d518309328e8ba7dff00881538ac22c6a.tar.gz
Bluetooth: Add support for BT_PKT_STATUS CMSG data for SCO connections
This change adds support for reporting the BT_PKT_STATUS to the socket CMSG data to allow the implementation of a packet loss correction on erroneous data received on the SCO socket. The patch was partially developed by Marcel Holtmann and validated by Hsin-yu Chao. Signed-off-by: Alain Michaud <alainm@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/sco.h')
-rw-r--r--include/net/bluetooth/sco.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/sco.h b/include/net/bluetooth/sco.h
index f40ddb4264fc..1aa2e14b6c94 100644
--- a/include/net/bluetooth/sco.h
+++ b/include/net/bluetooth/sco.h
@@ -46,4 +46,6 @@ struct sco_conninfo {
__u8 dev_class[3];
};
+#define SCO_CMSG_PKT_STATUS 0x01
+
#endif /* __SCO_H */