From: DoHyun Pyun Date: Mon, 28 May 2018 03:25:40 +0000 (+0900) Subject: Remove the file activation logic to insmod the artik530 X-Git-Tag: submit/tizen/20180531.061844~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F180264%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Remove the file activation logic to insmod the artik530 Change-Id: I267a427ce88d93576a78f2f0144080bc16ec2207 Signed-off-by: DoHyun Pyun --- diff --git a/bt-core/bt-core-adapter.c b/bt-core/bt-core-adapter.c index 644f3a3..9c68257 100644 --- a/bt-core/bt-core-adapter.c +++ b/bt-core/bt-core-adapter.c @@ -189,17 +189,6 @@ static int __bt_stack_up(void) return -1; } - /* We need to insert BT driver module by using 'insmod' in case of ARTIK530, - * and 'insmod' should be executed by systemd not bt-core. */ - ret = __bt_call_systemact_service(BT_SYSTEMACT_BT_DRIVER_INSMOD); - if (ret < 0) { - BT_ERR("Failed to call systemact service"); - return -1; - } else { - /* Insmod should run before bt-stack-up.sh command */ - usleep(1000 * 200); /* 200ms */ - } - ret = __execute_command("/usr/etc/bluetooth/bt-stack-up.sh", NULL); if (ret < 0) { BT_ERR("Failed to run script"); diff --git a/bt-core/include/bt-core-adapter.h b/bt-core/include/bt-core-adapter.h index 603b024..91e6159 100755 --- a/bt-core/include/bt-core-adapter.h +++ b/bt-core/include/bt-core-adapter.h @@ -40,7 +40,6 @@ extern "C" { #define BT_SYSTEMACT_BLUETOOTH_SHARE_START "/run/.bluetooth_share_start" #define BT_SYSTEMACT_RFKILL_UNBLOCK "/run/.rfkill_unblock" #define BT_SYSTEMACT_RFKILL_BLOCK "/run/.rfkill_block" -#define BT_SYSTEMACT_BT_DRIVER_INSMOD "/run/.bt_driver_insmod" #define BT_CORE_TYPE (bt_core_get_type())