aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2011-10-17 07:35:32 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-11-07 14:24:43 -0500
commit0e8b207e8a4442f1a662e1a3827e61e40279630a (patch)
treef739fe7996b50d3e6ea434bf68e380d4dbf6ed7f /include/net
parentc3eae82a844bb33e8182c7ee81828516b51ad642 (diff)
Bluetooth: EFS: implement L2CAP config pending state
Add L2CAP Config Pending state for EFS. Currently after receiving Config Response Pending respond with Config Response Success. ... > ACL data: handle 1 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0 Connection successful > ACL data: handle 1 flags 0x02 dlen 45 L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 33 RFC 0x03 (Enhanced Retransmission, TxWin 63, MaxTx 3, RTo 0, MTo 0, MPS 1009) EFS (Id 0x01, SerType Best Effort, MaxSDU 0xffff, SDUitime 0xffffffff, AccLat 0xffffffff, FlushTO 0x0000ffff) < ACL data: handle 1 flags 0x00 dlen 45 L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 33 RFC 0x03 (Enhanced Retransmission, TxWin 63, MaxTx 3, RTo 0, MTo 0, MPS 498) EFS (Id 0x01, SerType Best Effort, MaxSDU 0xffff, SDUitime 0xffffffff, AccLat 0xffffffff, FlushTO 0x0000ffff) < ACL data: handle 1 flags 0x00 dlen 47 L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 4 clen 33 Pending MTU 672 RFC 0x03 (Enhanced Retransmission, TxWin 63, MaxTx 3, RTo 2000, MTo 12000, MPS 498) EFS (Id 0x01, SerType Best Effort, MaxSDU 0xffff, SDUitime 0xffffffff, AccLat 0xffffffff, FlushTO 0x0000ffff) > ACL data: handle 1 flags 0x02 dlen 47 L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 4 clen 33 Pending MTU 672 RFC 0x03 (Enhanced Retransmission, TxWin 63, MaxTx 3, RTo 2000, MTo 12000, MPS 498) EFS (Id 0x01, SerType Best Effort, MaxSDU 0xffff, SDUitime 0xffffffff, AccLat 0xffffffff, FlushTO 0x0000ffff) > ACL data: handle 1 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0 Success < ACL data: handle 1 flags 0x00 dlen 14 L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0 Success < ACL data: handle 1 flags 0x00 dlen 510 L2CAP(d): cid 0x0040 len 506 ext_ctrl 0x00010000 fcs 0xebe0 [psm 4113] I-frame: Start (len 672) TxSeq 0 ReqSeq 0 ... Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/l2cap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index fddc82afeafc..38a561581169 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -246,6 +246,7 @@ struct l2cap_conf_rsp {
246#define L2CAP_CONF_UNACCEPT 0x0001 246#define L2CAP_CONF_UNACCEPT 0x0001
247#define L2CAP_CONF_REJECT 0x0002 247#define L2CAP_CONF_REJECT 0x0002
248#define L2CAP_CONF_UNKNOWN 0x0003 248#define L2CAP_CONF_UNKNOWN 0x0003
249#define L2CAP_CONF_PENDING 0x0004
249#define L2CAP_CONF_EFS_REJECT 0x0005 250#define L2CAP_CONF_EFS_REJECT 0x0005
250 251
251struct l2cap_conf_opt { 252struct l2cap_conf_opt {
@@ -505,6 +506,8 @@ enum {
505 CONF_NO_FCS_RECV, 506 CONF_NO_FCS_RECV,
506 CONF_STATE2_DEVICE, 507 CONF_STATE2_DEVICE,
507 CONF_EWS_RECV, 508 CONF_EWS_RECV,
509 CONF_LOC_CONF_PEND,
510 CONF_REM_CONF_PEND,
508}; 511};
509 512
510#define L2CAP_CONF_MAX_CONF_REQ 2 513#define L2CAP_CONF_MAX_CONF_REQ 2