All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tyszkowski Jakub <jakub.tyszkowski@tieto.com>
To: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>,
	linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 7/8] android/tester-ng: Add PAN Enable NAP test case
Date: Tue, 29 Jul 2014 15:15:30 +0200	[thread overview]
Message-ID: <53D79E72.5000303@tieto.com> (raw)
In-Reply-To: <1406635292-30691-8-git-send-email-ravikumar.veeramally@linux.intel.com>

Hi Ravi,

On 07/29/2014 02:01 PM, Ravi kumar Veeramally wrote:
> ---
>   android/tester-pan.c | 13 +++++++++++++
>   1 file changed, 13 insertions(+)
>
> diff --git a/android/tester-pan.c b/android/tester-pan.c
> index 7b013cc..1acc460 100644
> --- a/android/tester-pan.c
> +++ b/android/tester-pan.c
> @@ -121,6 +121,16 @@ static void pan_enable_panu_action(void)
>   	schedule_action_verification(step);
>   }
>
> +static void pan_enable_nap_action(void)
> +{
> +	struct test_data *data = tester_get_data();
> +	struct step *step = g_new0(struct step, 1);
> +
> +	step->action_status = data->if_pan->enable(BTPAN_ROLE_PANNAP);
> +
> +	schedule_action_verification(step);
> +}
> +
>   static struct test_case test_cases[] = {
>   	TEST_CASE_BREDRLE("PAN Init",
>   		ACTION_SUCCESS(dummy_action, NULL),
> @@ -172,6 +182,9 @@ static struct test_case test_cases[] = {
>   	TEST_CASE_BREDRLE("PAN Enable PANU - Success",
>   		ACTION(BT_STATUS_UNSUPPORTED, pan_enable_panu_action, NULL),
>   	),
> +	TEST_CASE_BREDRLE("PAN Enable NAP - Success",
> +		ACTION_SUCCESS(pan_enable_nap_action, NULL),
> +	),

Shouldn't btpan_control_state_callback be verified after the enable?

Snipped from hardware/bt_pan.h:
"The result state of enabl will be returned by 
btpan_control_state_callback."

Same applies to the previous case (enable PANU).

>   };
>
>   struct queue *get_pan_tests(void)
>

Regards,
Jakub

  reply	other threads:[~2014-07-29 13:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-29 12:01 [PATCH 0/8] Add PAN test cases Ravi kumar Veeramally
2014-07-29 12:01 ` [PATCH 1/8] android/tester: Fix memory leak Ravi kumar Veeramally
2014-07-29 12:01 ` [PATCH 2/8] android/tester-ng: Add PAN init test case Ravi kumar Veeramally
2014-07-29 13:07   ` Tyszkowski Jakub
2014-07-29 12:01 ` [PATCH 3/8] android/tester-ng: Add PAN Connect " Ravi kumar Veeramally
2014-07-29 12:01 ` [PATCH 4/8] android/tester-ng: Add PAN Disconnect " Ravi kumar Veeramally
2014-07-29 12:01 ` [PATCH 5/8] anrdroid/tester-ng: Add PAN Get Local Role " Ravi kumar Veeramally
2014-07-29 13:15   ` Grzegorz Kolodziejczyk
2014-07-29 12:01 ` [PATCH 6/8] android/tester-ng: Add PAN Enable PANU " Ravi kumar Veeramally
2014-07-29 12:01 ` [PATCH 7/8] android/tester-ng: Add PAN Enable NAP " Ravi kumar Veeramally
2014-07-29 13:15   ` Tyszkowski Jakub [this message]
2014-07-29 12:01 ` [PATCH 8/8] android/tester-ng: Add PAN Enable None " Ravi kumar Veeramally
2014-07-30 10:06 ` [PATCH 0/8] Add PAN test cases Szymon Janc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53D79E72.5000303@tieto.com \
    --to=jakub.tyszkowski@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=ravikumar.veeramally@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.