Return-Path: From: Ravi kumar Veeramally To: linux-bluetooth@vger.kernel.org Cc: Ravi kumar Veeramally Subject: [PATCH 6/8] android/tester-ng: Add PAN Enable PANU test case Date: Tue, 29 Jul 2014 15:01:30 +0300 Message-Id: <1406635292-30691-7-git-send-email-ravikumar.veeramally@linux.intel.com> In-Reply-To: <1406635292-30691-1-git-send-email-ravikumar.veeramally@linux.intel.com> References: <1406635292-30691-1-git-send-email-ravikumar.veeramally@linux.intel.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- android/tester-pan.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/android/tester-pan.c b/android/tester-pan.c index 1db4a85..7b013cc 100644 --- a/android/tester-pan.c +++ b/android/tester-pan.c @@ -111,6 +111,16 @@ static void pan_get_local_role_action(void) schedule_action_verification(step); } +static void pan_enable_panu_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_PANU); + + schedule_action_verification(step); +} + static struct test_case test_cases[] = { TEST_CASE_BREDRLE("PAN Init", ACTION_SUCCESS(dummy_action, NULL), @@ -159,6 +169,9 @@ static struct test_case test_cases[] = { BTPAN_STATE_DISCONNECTED), CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_OFF), ), + TEST_CASE_BREDRLE("PAN Enable PANU - Success", + ACTION(BT_STATUS_UNSUPPORTED, pan_enable_panu_action, NULL), + ), }; struct queue *get_pan_tests(void) -- 1.9.1