* L2CAP Flush_Timeout Error
@ 2012-10-02 18:18 Ajay
2012-10-08 9:09 ` [PATCH] Bluetooth: Allow to set flush timeout Andrei Emeltchenko
2012-10-08 9:11 ` L2CAP Flush_Timeout Error Andrei Emeltchenko
0 siblings, 2 replies; 5+ messages in thread
From: Ajay @ 2012-10-02 18:18 UTC (permalink / raw)
To: linux-bluetooth
Hi,
Im currently working in an A2DP stuff, where i noticed an error.
Here i wanted to monitor the flushed packets due to timeout.
I used the l2test code for my testing purpose
On client side "l2test -R -S <bdadddr> "
and i set the flush timeout as 100 (opts.flush_to = 100)
But later when i print the getsockopt value of flush_to, it
was showing some default value (65532) harcoded at kernel side.
so how can i flush some packets in the sender side, without
enabling any retransmission and able to monitor the sequence number in
the receiver side.
--
Thanks & regards
AJAY KV
8892753703
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH] Bluetooth: Allow to set flush timeout
2012-10-02 18:18 L2CAP Flush_Timeout Error Ajay
@ 2012-10-08 9:09 ` Andrei Emeltchenko
2012-10-08 9:11 ` L2CAP Flush_Timeout Error Andrei Emeltchenko
1 sibling, 0 replies; 5+ messages in thread
From: Andrei Emeltchenko @ 2012-10-08 9:09 UTC (permalink / raw)
To: linux-bluetooth
From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
---
net/bluetooth/l2cap_sock.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
index 0c05d7d..70578d8 100644
--- a/net/bluetooth/l2cap_sock.c
+++ b/net/bluetooth/l2cap_sock.c
@@ -536,6 +536,7 @@ static int l2cap_sock_setsockopt_old(struct socket *sock, int optname, char __us
chan->fcs = opts.fcs;
chan->max_tx = opts.max_tx;
chan->tx_win = opts.txwin_size;
+ chan->flush_to = opts.flush_to;
break;
case L2CAP_LM:
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: L2CAP Flush_Timeout Error
2012-10-02 18:18 L2CAP Flush_Timeout Error Ajay
2012-10-08 9:09 ` [PATCH] Bluetooth: Allow to set flush timeout Andrei Emeltchenko
@ 2012-10-08 9:11 ` Andrei Emeltchenko
2012-10-02 19:46 ` Ajay
1 sibling, 1 reply; 5+ messages in thread
From: Andrei Emeltchenko @ 2012-10-08 9:11 UTC (permalink / raw)
To: Ajay; +Cc: linux-bluetooth
On Tue, Oct 02, 2012 at 11:48:56PM +0530, Ajay wrote:
> Hi,
> Im currently working in an A2DP stuff, where i noticed an error.
> Here i wanted to monitor the flushed packets due to timeout.
>
> I used the l2test code for my testing purpose
>
> On client side "l2test -R -S <bdadddr> "
> and i set the flush timeout as 100 (opts.flush_to = 100)
>
> But later when i print the getsockopt value of flush_to, it
> was showing some default value (65532) harcoded at kernel side.
Try the patch in this thread.
Best regards
Andrei Emeltchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: L2CAP Flush_Timeout Error
2012-10-08 9:11 ` L2CAP Flush_Timeout Error Andrei Emeltchenko
@ 2012-10-02 19:46 ` Ajay
2012-10-02 20:21 ` Ajay
0 siblings, 1 reply; 5+ messages in thread
From: Ajay @ 2012-10-02 19:46 UTC (permalink / raw)
To: Andrei Emeltchenko, linux-bluetooth
On Monday 08 October 2012 02:41 PM, Andrei Emeltchenko wrote:
> On Tue, Oct 02, 2012 at 11:48:56PM +0530, Ajay wrote:
>> Hi,
>> Im currently working in an A2DP stuff, where i noticed an error.
>> Here i wanted to monitor the flushed packets due to timeout.
>>
>> I used the l2test code for my testing purpose
>>
>> On client side "l2test -R -S <bdadddr> "
>> and i set the flush timeout as 100 (opts.flush_to = 100)
>>
>> But later when i print the getsockopt value of flush_to, it
>> was showing some default value (65532) harcoded at kernel side.
>
> Try the patch in this thread.
>
> Best regards
> Andrei Emeltchenko
>
Thanks for your patch , its working fine. Now even if i set the
flush_timeout = 5 , i couldnt able to see any packets missing at the
receiver side . Here in the sender side im giving proper sequence
number, and these same sequence is getting at the receiver side . i
doubted even though its flushing , controller is doing some
retransmission job...please help . My kernel is 2.6.39 , and im using
BASIC MODE of transmission. so shall i change it to STEAMING MODE ????
--
Thanks & regards
AJAY KV
8892753703
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: L2CAP Flush_Timeout Error
2012-10-02 19:46 ` Ajay
@ 2012-10-02 20:21 ` Ajay
0 siblings, 0 replies; 5+ messages in thread
From: Ajay @ 2012-10-02 20:21 UTC (permalink / raw)
To: linux-bluetooth
> On Tue, Oct 02, 2012 at 11:48:56PM +0530, Ajay wrote:
>> Hi,
>> Im currently working in an A2DP stuff, where i noticed an error.
>> Here i wanted to monitor the flushed packets due to timeout.
>>
>> I used the l2test code for my testing purpose
>>
>> On client side "l2test -R -S <bdadddr> "
>> and i set the flush timeout as 100 (opts.flush_to = 100)
>>
>> But later when i print the getsockopt value of flush_to, it
>> was showing some default value (65532) harcoded at kernel side.
>
> Try the patch in this thread.
>
> Best regards
> Andrei Emeltchenko
>
Thanks for your patch , its working fine. Now even if i set the
flush_timeout = 5 , i couldnt able to see any packets missing at the
receiver side . Here in the sender side im giving proper sequence
number, and these same sequence is getting at the receiver side . i
doubted even though its flushing , controller is doing some
retransmission job...please help . My kernel is 2.6.39 , and im using
BASIC MODE of transmission. so shall i change it to STEAMING MODE ????
--
Thanks & regards
AJAY KV
8892753703
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-08 9:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 18:18 L2CAP Flush_Timeout Error Ajay
2012-10-08 9:09 ` [PATCH] Bluetooth: Allow to set flush timeout Andrei Emeltchenko
2012-10-08 9:11 ` L2CAP Flush_Timeout Error Andrei Emeltchenko
2012-10-02 19:46 ` Ajay
2012-10-02 20:21 ` Ajay
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).