Fix LE status mismatching issue 21/219021/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 2 Dec 2019 01:35:58 +0000 (10:35 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 2 Dec 2019 01:44:59 +0000 (10:44 +0900)
Change-Id: Ic0e904ae968c75de99f55d7979c334da9d8bef79
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-core/bt-core-adapter.c

index 7582638..1d4c723 100644 (file)
@@ -391,6 +391,7 @@ int _bt_enable_adapter_le(void)
        bt_status_t status;
        bt_le_status_t le_status;
        le_status = _bt_core_get_le_status();
+       retv_if(le_status == BT_LE_ACTIVATED, 0);
        retv_if(le_status != BT_LE_DEACTIVATED, -1);
 
        status = _bt_core_get_status();