summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/l2cap.h2
-rw-r--r--include/rfcomm.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/include/l2cap.h b/include/l2cap.h
index b5052dcf..e76f9020 100644
--- a/include/l2cap.h
+++ b/include/l2cap.h
@@ -48,7 +48,7 @@ struct sockaddr_l2 {
bdaddr_t l2_bdaddr;
};
-/* Socket options */
+/* L2CAP socket options */
#define L2CAP_OPTIONS 0x01
struct l2cap_options {
uint16_t omtu;
diff --git a/include/rfcomm.h b/include/rfcomm.h
index bb79a7a2..8cb8ac47 100644
--- a/include/rfcomm.h
+++ b/include/rfcomm.h
@@ -49,6 +49,14 @@ struct sockaddr_rc {
uint8_t rc_channel;
};
+/* RFCOMM socket options */
+#define RFCOMM_LM 0x03
+#define RFCOMM_LM_MASTER 0x0001
+#define RFCOMM_LM_AUTH 0x0002
+#define RFCOMM_LM_ENCRYPT 0x0004
+#define RFCOMM_LM_TRUSTED 0x0008
+#define RFCOMM_LM_RELIABLE 0x0010
+
/* RFCOMM TTY support */
#define RFCOMM_MAX_DEV 256