aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-05-03 01:31:10 -0400
committerMarcel Holtmann <marcel@holtmann.org>2009-08-22 17:50:07 -0400
commitc6b03cf986eab00e20d0dbc852b233bb83472138 (patch)
tree94fe92aafca068e3eb1cd6f4c53a3c86801fe7e0 /include/net
parent44dd46de325c4d47abfd1361e5d84a548edb8e42 (diff)
Bluetooth: Allow setting of L2CAP ERTM via socket option
To enable Enhanced Retransmission mode it needs to be set via a socket option. A different mode can be set on a socket, but on listen() and connect() the mode is checked and ERTM is only allowed if it is enabled via the module parameter. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/l2cap.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index e919fca1072a..06b072fd6d54 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -190,7 +190,7 @@ struct l2cap_conf_rfc {
190#define L2CAP_MODE_RETRANS 0x01 190#define L2CAP_MODE_RETRANS 0x01
191#define L2CAP_MODE_FLOWCTL 0x02 191#define L2CAP_MODE_FLOWCTL 0x02
192#define L2CAP_MODE_ERTM 0x03 192#define L2CAP_MODE_ERTM 0x03
193#define L2CAP_MODE_STREAM 0x04 193#define L2CAP_MODE_STREAMING 0x04
194 194
195struct l2cap_disconn_req { 195struct l2cap_disconn_req {
196 __le16 dcid; 196 __le16 dcid;
@@ -271,9 +271,11 @@ struct l2cap_pinfo {
271 __u16 imtu; 271 __u16 imtu;
272 __u16 omtu; 272 __u16 omtu;
273 __u16 flush_to; 273 __u16 flush_to;
274 __u8 sec_level; 274 __u8 mode;
275 __u8 fcs;
276 __u8 sec_level;
275 __u8 role_switch; 277 __u8 role_switch;
276 __u8 force_reliable; 278 __u8 force_reliable;
277 279
278 __u8 conf_req[64]; 280 __u8 conf_req[64];
279 __u8 conf_len; 281 __u8 conf_len;