diff options
-rw-r--r-- | include/l2cap.h | 12 | ||||
-rw-r--r-- | include/rfcomm.h | 6 | ||||
-rw-r--r-- | include/sco.h | 5 |
3 files changed, 15 insertions, 8 deletions
diff --git a/include/l2cap.h b/include/l2cap.h index 6fa155f1..7029c32c 100644 --- a/include/l2cap.h +++ b/include/l2cap.h @@ -51,16 +51,16 @@ struct sockaddr_l2 { /* L2CAP socket options */ #define L2CAP_OPTIONS 0x01 struct l2cap_options { - uint16_t omtu; - uint16_t imtu; - uint16_t flush_to; - uint8_t mode; + uint16_t omtu; + uint16_t imtu; + uint16_t flush_to; + uint8_t mode; }; #define L2CAP_CONNINFO 0x02 struct l2cap_conninfo { - uint16_t hci_handle; - uint8_t dev_class[3]; + uint16_t hci_handle; + uint8_t dev_class[3]; }; #define L2CAP_LM 0x03 diff --git a/include/rfcomm.h b/include/rfcomm.h index 02775d50..d4cfc056 100644 --- a/include/rfcomm.h +++ b/include/rfcomm.h @@ -50,6 +50,12 @@ struct sockaddr_rc { }; /* RFCOMM socket options */ +#define RFCOMM_CONNINFO 0x02 +struct rfcomm_conninfo { + uint16_t hci_handle; + uint8_t dev_class[3]; +}; + #define RFCOMM_LM 0x03 #define RFCOMM_LM_MASTER 0x0001 #define RFCOMM_LM_AUTH 0x0002 diff --git a/include/sco.h b/include/sco.h index 0d0ac123..09ab395e 100644 --- a/include/sco.h +++ b/include/sco.h @@ -51,12 +51,13 @@ struct sockaddr_sco { /* set/get sockopt defines */ #define SCO_OPTIONS 0x01 struct sco_options { - uint16_t mtu; + uint16_t mtu; }; #define SCO_CONNINFO 0x02 struct sco_conninfo { - uint16_t hci_handle; + uint16_t hci_handle; + uint8_t dev_class[3]; }; #ifdef __cplusplus |