linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Subject: [PATCH 8/8] android/tester-ng: Add PAN Enable None test case
Date: Tue, 29 Jul 2014 15:01:32 +0300	[thread overview]
Message-ID: <1406635292-30691-9-git-send-email-ravikumar.veeramally@linux.intel.com> (raw)
In-Reply-To: <1406635292-30691-1-git-send-email-ravikumar.veeramally@linux.intel.com>

---
 android/tester-pan.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/android/tester-pan.c b/android/tester-pan.c
index 1acc460..c3a8cea 100644
--- a/android/tester-pan.c
+++ b/android/tester-pan.c
@@ -131,6 +131,16 @@ static void pan_enable_nap_action(void)
 	schedule_action_verification(step);
 }
 
+static void pan_enable_none_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_NONE);
+
+	schedule_action_verification(step);
+}
+
 static struct test_case test_cases[] = {
 	TEST_CASE_BREDRLE("PAN Init",
 		ACTION_SUCCESS(dummy_action, NULL),
@@ -185,6 +195,9 @@ static struct test_case test_cases[] = {
 	TEST_CASE_BREDRLE("PAN Enable NAP - Success",
 		ACTION_SUCCESS(pan_enable_nap_action, NULL),
 	),
+	TEST_CASE_BREDRLE("PAN Enable NONE - Success",
+		ACTION_SUCCESS(pan_enable_none_action, NULL),
+	),
 };
 
 struct queue *get_pan_tests(void)
-- 
1.9.1


  parent reply	other threads:[~2014-07-29 12:01 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
2014-07-29 12:01 ` Ravi kumar Veeramally [this message]
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=1406635292-30691-9-git-send-email-ravikumar.veeramally@linux.intel.com \
    --to=ravikumar.veeramally@linux.intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /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 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).