Return-Path: From: Ravi kumar Veeramally To: linux-bluetooth@vger.kernel.org Cc: Ravi kumar Veeramally Subject: [PATCH_v2 2/4] android/pan: Add PAN cleanup interface implementation Date: Tue, 12 Nov 2013 16:20:40 +0200 Message-Id: <1384266042-6344-3-git-send-email-ravikumar.veeramally@linux.intel.com> In-Reply-To: <1384266042-6344-1-git-send-email-ravikumar.veeramally@linux.intel.com> References: <1384266042-6344-1-git-send-email-ravikumar.veeramally@linux.intel.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- android/hal-pan.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/android/hal-pan.c b/android/hal-pan.c index cacc6c0..bec179f 100644 --- a/android/hal-pan.c +++ b/android/hal-pan.c @@ -114,16 +114,19 @@ static bt_status_t pan_init(const btpan_callbacks_t *callbacks) static void pan_cleanup() { + struct hal_cmd_register_module cmd; + DBG(""); if (!interface_ready()) return; - /* TODO: disable service */ + cbs = NULL; - /* TODO: stop PAN thread */ + cmd.service_id = HAL_SERVICE_ID_PAN; - cbs = NULL; + hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_OP_UNREGISTER_MODULE, + sizeof(cmd), &cmd, 0, NULL, NULL); } static btpan_interface_t pan_if = { -- 1.8.3.2