All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] tools/mgmt-tester: Minor fix in Stop discovery Success 1 test
@ 2014-03-20 13:25 Lukasz Rymanowski
  2014-03-20 13:25 ` [PATCH 2/2] tools/mgmt-tester: Remove dead code Lukasz Rymanowski
  2014-03-20 14:17 ` [PATCH 1/2] tools/mgmt-tester: Minor fix in Stop discovery Success 1 test Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Lukasz Rymanowski @ 2014-03-20 13:25 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: johan.hedberg, Lukasz Rymanowski

Set directly setup_send params for start discovery. It will be easier to
follow the test.
---
 tools/mgmt-tester.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 82952c7..24febf6 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -1722,6 +1722,8 @@ static const char stop_discovery_inq_param[] = { 0x33, 0x8b, 0x9e, 0x08, 0x00 };
 static const struct generic_data stop_discovery_success_test_1 = {
 	.setup_settings = settings_powered_le,
 	.setup_send_opcode = MGMT_OP_START_DISCOVERY,
+	.setup_send_param = start_discovery_bredrle_param,
+	.setup_send_len = sizeof(start_discovery_bredrle_param),
 	.send_opcode = MGMT_OP_STOP_DISCOVERY,
 	.send_param = stop_discovery_bredrle_param,
 	.send_len = sizeof(stop_discovery_bredrle_param),
-- 
1.8.4


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

* [PATCH 2/2] tools/mgmt-tester: Remove dead code
  2014-03-20 13:25 [PATCH 1/2] tools/mgmt-tester: Minor fix in Stop discovery Success 1 test Lukasz Rymanowski
@ 2014-03-20 13:25 ` Lukasz Rymanowski
  2014-03-20 14:17 ` [PATCH 1/2] tools/mgmt-tester: Minor fix in Stop discovery Success 1 test Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Lukasz Rymanowski @ 2014-03-20 13:25 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: johan.hedberg, Lukasz Rymanowski

---
 tools/mgmt-tester.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 24febf6..b60d7d8 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -2842,12 +2842,6 @@ static void setup_start_discovery(const void *test_data)
 	const struct generic_data *test = data->test_data;
 	const void *send_param = test->setup_send_param;
 	uint16_t send_len = test->setup_send_len;
-	unsigned char disc_param[] = { 0x07 };
-
-	if (!send_param) {
-		send_param = disc_param;
-		send_len = 1;
-	}
 
 	mgmt_send(data->mgmt, test->setup_send_opcode, data->mgmt_index,
 				send_len, send_param, setup_discovery_callback,
-- 
1.8.4


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

* Re: [PATCH 1/2] tools/mgmt-tester: Minor fix in Stop discovery Success 1 test
  2014-03-20 13:25 [PATCH 1/2] tools/mgmt-tester: Minor fix in Stop discovery Success 1 test Lukasz Rymanowski
  2014-03-20 13:25 ` [PATCH 2/2] tools/mgmt-tester: Remove dead code Lukasz Rymanowski
@ 2014-03-20 14:17 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2014-03-20 14:17 UTC (permalink / raw)
  To: Lukasz Rymanowski; +Cc: linux-bluetooth

Hi Lukasz,

On Thu, Mar 20, 2014, Lukasz Rymanowski wrote:
> Set directly setup_send params for start discovery. It will be easier to
> follow the test.
> ---
>  tools/mgmt-tester.c | 2 ++
>  1 file changed, 2 insertions(+)

Both patches have been applied. Thanks.

Johan

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

end of thread, other threads:[~2014-03-20 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-20 13:25 [PATCH 1/2] tools/mgmt-tester: Minor fix in Stop discovery Success 1 test Lukasz Rymanowski
2014-03-20 13:25 ` [PATCH 2/2] tools/mgmt-tester: Remove dead code Lukasz Rymanowski
2014-03-20 14:17 ` [PATCH 1/2] tools/mgmt-tester: Minor fix in Stop discovery Success 1 test Johan Hedberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.