2011-02-09 18:42:00

by Gustavo Padovan

[permalink] [raw]
Subject: [PATCH] use a valid PSM value in l2test.

---
test/l2test.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/l2test.c b/test/l2test.c
index 17883a9..3ac332f 100644
--- a/test/l2test.c
+++ b/test/l2test.c
@@ -87,7 +87,7 @@ static long buffer_size = 2048;

/* Default addr and psm and cid */
static bdaddr_t bdaddr;
-static unsigned short psm = 10;
+static unsigned short psm = 0x1011;
static unsigned short cid = 0;

/* Default number of frames to send (-1 = infinite) */
--
1.7.4



2011-02-09 22:04:26

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] use a valid PSM value in l2test.

Hi Gustavo,

On Wed, Feb 09, 2011, Gustavo F. Padovan wrote:
> ---
> test/l2test.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/test/l2test.c b/test/l2test.c
> index 17883a9..3ac332f 100644
> --- a/test/l2test.c
> +++ b/test/l2test.c
> @@ -87,7 +87,7 @@ static long buffer_size = 2048;
>
> /* Default addr and psm and cid */
> static bdaddr_t bdaddr;
> -static unsigned short psm = 10;
> +static unsigned short psm = 0x1011;
> static unsigned short cid = 0;
>
> /* Default number of frames to send (-1 = infinite) */

Pushed upstream. Thanks.

Johan

2011-02-09 18:28:50

by Gustavo Padovan

[permalink] [raw]
Subject: Re: [PATCH] use a valid PSM value in l2test.

* Gustavo F. Padovan <[email protected]> [2011-02-09 16:26:37 -0200]:

> ---
> test/l2test.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

Gah, this is wrong. L2CAP doesn't accept this value


--
Gustavo F. Padovan
http://profusion.mobi