diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-06-05 14:10:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-06-05 14:10:07 -0400 |
commit | 67be1e4f4b0a512f6af3a7db681ae9b62d31de5e (patch) | |
tree | 690ef67ff6b630344e8fd86c7c84b0d31f468f24 /net/bluetooth/l2cap_core.c | |
parent | a715c7ddd65a1a3b2839b8ebd759bb2d361f7675 (diff) | |
parent | 8a96f3cd22878fc0bb564a8478a6e17c0b8dca73 (diff) |
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index dc4d301d3a7..6eabbe05fe5 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -471,8 +471,14 @@ void l2cap_chan_set_defaults(struct l2cap_chan *chan) chan->max_tx = L2CAP_DEFAULT_MAX_TX; chan->tx_win = L2CAP_DEFAULT_TX_WINDOW; chan->tx_win_max = L2CAP_DEFAULT_TX_WINDOW; + chan->remote_max_tx = chan->max_tx; + chan->remote_tx_win = chan->tx_win; chan->ack_win = L2CAP_DEFAULT_TX_WINDOW; chan->sec_level = BT_SECURITY_LOW; + chan->flush_to = L2CAP_DEFAULT_FLUSH_TO; + chan->retrans_timeout = L2CAP_DEFAULT_RETRANS_TO; + chan->monitor_timeout = L2CAP_DEFAULT_MONITOR_TO; + chan->conf_state = 0; set_bit(FLAG_FORCE_ACTIVE, &chan->flags); } |