linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Initialize tx_win_max for fixed channel
@ 2011-10-26  7:44 Emeltchenko Andrei
  2011-11-01 16:10 ` Gustavo Padovan
  0 siblings, 1 reply; 2+ messages in thread
From: Emeltchenko Andrei @ 2011-10-26  7:44 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

tx_win_max is initialized during L2CAP configuration phase. For fixed
channel (like A2MP) we want to have it initialized during channel setup.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
---
 net/bluetooth/l2cap_sock.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
index 9eb3320..7c953f5 100644
--- a/net/bluetooth/l2cap_sock.c
+++ b/net/bluetooth/l2cap_sock.c
@@ -964,6 +964,7 @@ static void l2cap_sock_init(struct sock *sk, struct sock *parent)
 		chan->fcs  = pchan->fcs;
 		chan->max_tx = pchan->max_tx;
 		chan->tx_win = pchan->tx_win;
+		chan->tx_win_max = pchan->tx_win_max;
 		chan->sec_level = pchan->sec_level;
 		chan->flags = pchan->flags;
 		chan->amp_pref = pchan->amp_pref;
@@ -993,6 +994,7 @@ static void l2cap_sock_init(struct sock *sk, struct sock *parent)
 		chan->max_tx = L2CAP_DEFAULT_MAX_TX;
 		chan->fcs  = L2CAP_FCS_CRC16;
 		chan->tx_win = L2CAP_DEFAULT_TX_WINDOW;
+		chan->tx_win_max = L2CAP_DEFAULT_TX_WINDOW;
 		chan->sec_level = BT_SECURITY_LOW;
 		chan->flags = 0;
 		chan->amp_pref = BT_AMP_POLICY_REQUIRE_BR_EDR;
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Bluetooth: Initialize tx_win_max for fixed channel
  2011-10-26  7:44 [PATCH] Bluetooth: Initialize tx_win_max for fixed channel Emeltchenko Andrei
@ 2011-11-01 16:10 ` Gustavo Padovan
  0 siblings, 0 replies; 2+ messages in thread
From: Gustavo Padovan @ 2011-11-01 16:10 UTC (permalink / raw)
  To: Emeltchenko Andrei; +Cc: linux-bluetooth

Hi Andrei,

* Emeltchenko Andrei <Andrei.Emeltchenko.news@gmail.com> [2011-10-26 10:44:39 +0300]:

> From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> 
> tx_win_max is initialized during L2CAP configuration phase. For fixed
> channel (like A2MP) we want to have it initialized during channel setup.
> 
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> ---
>  net/bluetooth/l2cap_sock.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)

This one doesn't apply anymore, please rebase. Thanks.

	Gustavo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-01 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-26  7:44 [PATCH] Bluetooth: Initialize tx_win_max for fixed channel Emeltchenko Andrei
2011-11-01 16:10 ` Gustavo Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).