aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2011-10-13 09:18:54 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-13 16:09:08 -0400
commit8f7975b153faab4b78369458a892dd705e7c395b (patch)
tree79e98a532ee572125353c182f21887449e52210e /net
parent5a9e7057c5b3feed2d403ef69cfb0bdbacab3a6d (diff)
Bluetooth: EFS: assign default values in chan add
Assign default EFS values when creating L2CAP channel Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/l2cap_core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 439e7150f150..410c9cda057c 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -338,6 +338,13 @@ static void __l2cap_chan_add(struct l2cap_conn *conn, struct l2cap_chan *chan)
338 chan->omtu = L2CAP_DEFAULT_MTU; 338 chan->omtu = L2CAP_DEFAULT_MTU;
339 } 339 }
340 340
341 chan->local_id = L2CAP_BESTEFFORT_ID;
342 chan->local_stype = L2CAP_SERV_BESTEFFORT;
343 chan->local_msdu = L2CAP_DEFAULT_MAX_SDU_SIZE;
344 chan->local_sdu_itime = L2CAP_DEFAULT_SDU_ITIME;
345 chan->local_acc_lat = L2CAP_DEFAULT_ACC_LAT;
346 chan->local_flush_to = L2CAP_DEFAULT_FLUSH_TO;
347
341 chan_hold(chan); 348 chan_hold(chan);
342 349
343 list_add(&chan->list, &conn->chan_l); 350 list_add(&chan->list, &conn->chan_l);