Skip to content

Commit 5a9e705

Browse files
finikorgGustavo F. Padovan
authored andcommitted
Bluetooth: EFS: definitions and headers
Define Extended Flow Specification structures and default values. Based upon haijun.liu <haijun.liu@atheros.com> series of patches (sent Sun, 22 Aug 2010) Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
1 parent d43cb28 commit 5a9e705

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

‎include/net/bluetooth/l2cap.h‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ struct l2cap_conf_rsp {
241241
#define L2CAP_CONF_UNACCEPT 0x0001
242242
#define L2CAP_CONF_REJECT 0x0002
243243
#define L2CAP_CONF_UNKNOWN 0x0003
244+
#define L2CAP_CONF_EFS_REJECT 0x0005
244245

245246
struct l2cap_conf_opt {
246247
__u8 type;
@@ -257,6 +258,7 @@ struct l2cap_conf_opt {
257258
#define L2CAP_CONF_QOS 0x03
258259
#define L2CAP_CONF_RFC 0x04
259260
#define L2CAP_CONF_FCS 0x05
261+
#define L2CAP_CONF_EFS 0x06
260262
#define L2CAP_CONF_EWS 0x07
261263

262264
#define L2CAP_CONF_MAX_SIZE 22
@@ -276,6 +278,15 @@ struct l2cap_conf_rfc {
276278
#define L2CAP_MODE_ERTM 0x03
277279
#define L2CAP_MODE_STREAMING 0x04
278280

281+
struct l2cap_conf_efs {
282+
__u8 id;
283+
__u8 stype;
284+
__le16 msdu;
285+
__le32 sdu_itime;
286+
__le32 acc_lat;
287+
__le32 flush_to;
288+
} __packed;
289+
279290
struct l2cap_disconn_req {
280291
__le16 dcid;
281292
__le16 scid;
@@ -386,6 +397,20 @@ struct l2cap_chan {
386397
__u8 remote_max_tx;
387398
__u16 remote_mps;
388399

400+
__u8 local_id;
401+
__u8 local_stype;
402+
__u16 local_msdu;
403+
__u32 local_sdu_itime;
404+
__u32 local_acc_lat;
405+
__u32 local_flush_to;
406+
407+
__u8 remote_id;
408+
__u8 remote_stype;
409+
__u16 remote_msdu;
410+
__u32 remote_sdu_itime;
411+
__u32 remote_acc_lat;
412+
__u32 remote_flush_to;
413+
389414
struct timer_list chan_timer;
390415
struct timer_list retrans_timer;
391416
struct timer_list monitor_timer;
@@ -492,6 +517,7 @@ enum {
492517
FLAG_FORCE_RELIABLE,
493518
FLAG_FLUSHABLE,
494519
FLAG_EXT_CTRL,
520+
FLAG_EFS_ENABLE,
495521
};
496522

497523
#define __set_chan_timer(c, t) l2cap_set_timer(c, &c->chan_timer, (t))

0 commit comments

Comments
 (0)