* [PATCH] Use a valid PSM as the default in l2test.
@ 2010-08-04 22:31 Mat Martineau
0 siblings, 0 replies; 3+ messages in thread
From: Mat Martineau @ 2010-08-04 22:31 UTC (permalink / raw)
To: linux-bluetooth; +Cc: marcel, johan.hedberg, rshaffer, Mat Martineau
The Bluetooth spec requires PSMs to be odd numbers, with the least
significant bit of the most significant byte set to 0. This
change is a prerequisite for PSM validation in the kernel.
---
test/l2test.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/l2test.c b/test/l2test.c
index 0bb46f3..32cd27a 100644
--- a/test/l2test.c
+++ b/test/l2test.c
@@ -87,7 +87,7 @@ static long buffer_size = 2048;
/* Default addr and psm */
static bdaddr_t bdaddr;
-static unsigned short psm = 10;
+static unsigned short psm = 0x1001;
/* Default number of frames to send (-1 = infinite) */
static int num_frames = -1;
--
1.7.1
--
Mat Martineau
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] Use a valid PSM as the default in l2test.
@ 2010-10-08 15:16 Mat Martineau
2010-10-09 8:09 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Mat Martineau @ 2010-10-08 15:16 UTC (permalink / raw)
To: linux-bluetooth; +Cc: marcel, johan.hedberg, rshaffer, gustavo
---------- Forwarded message ----------
Date: Wed, 4 Aug 2010 15:31:13 -0700
From: Mat Martineau <mathewm@codeaurora.org>
To: linux-bluetooth@vger.kernel.org
Cc: marcel@holtmann.org, johan.hedberg@gmail.com, rshaffer@codeaurora.org,
Mat Martineau <mathewm@codeaurora.org>
Subject: [PATCH] Use a valid PSM as the default in l2test.
The Bluetooth spec requires PSMs to be odd numbers, with the least
significant bit of the most significant byte set to 0. This
change is a prerequisite for PSM validation in the kernel.
---
test/l2test.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/l2test.c b/test/l2test.c
index 0bb46f3..32cd27a 100644
--- a/test/l2test.c
+++ b/test/l2test.c
@@ -87,7 +87,7 @@ static long buffer_size = 2048;
/* Default addr and psm */
static bdaddr_t bdaddr;
-static unsigned short psm = 10;
+static unsigned short psm = 0x1001;
/* Default number of frames to send (-1 = infinite) */
static int num_frames = -1;
--
1.7.1
Ping. Marcel requested this patch to go with the "Validate PSM values
in calls to connect() and bind()" change to the kernel code.
--
Mat Martineau
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Use a valid PSM as the default in l2test.
2010-10-08 15:16 [PATCH] Use a valid PSM as the default in l2test Mat Martineau
@ 2010-10-09 8:09 ` Marcel Holtmann
0 siblings, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2010-10-09 8:09 UTC (permalink / raw)
To: Mat Martineau; +Cc: linux-bluetooth, johan.hedberg, rshaffer, gustavo
Hi Mat,
> The Bluetooth spec requires PSMs to be odd numbers, with the least
> significant bit of the most significant byte set to 0. This
> change is a prerequisite for PSM validation in the kernel.
> ---
> test/l2test.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
it does not apply.
Applying: Use a valid PSM as the default in l2test.
error: patch failed: test/l2test.c:87
error: test/l2test.c: patch does not apply
Patch failed at 0001 Use a valid PSM as the default in l2test.
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-09 8:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-08 15:16 [PATCH] Use a valid PSM as the default in l2test Mat Martineau
2010-10-09 8:09 ` Marcel Holtmann
-- strict thread matches above, loose matches on Subject: below --
2010-08-04 22:31 Mat Martineau
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).