bt_le_scan_filter_s *__filter = NULL;
BT_CHECK_LE_SUPPORT();
+ BT_CHECK_INIT_STATUS();
+ BT_CHECK_INPUT_PARAMETER(scan_filter);
+
if (bluetooth_is_scan_filter_supported() == FALSE) {
BT_ERR("BT_ERROR_NOT_SUPPORTED(0x%08x)", BT_ERROR_NOT_SUPPORTED);
return BT_ERROR_NOT_SUPPORTED;
}
- BT_CHECK_INIT_STATUS();
- BT_CHECK_INPUT_PARAMETER(scan_filter);
-
__filter = (bt_le_scan_filter_s *)g_malloc0(sizeof(bt_le_scan_filter_s));
if (__filter == NULL) {
BT_ERR("OUT_OF_MEMORY(0x%08x)",
int error_code = BT_ERROR_NONE;
BT_CHECK_LE_SUPPORT();
+ BT_CHECK_INIT_STATUS();
+
if (bluetooth_is_scan_filter_supported() == FALSE) {
BT_ERR("BT_ERROR_NOT_SUPPORTED(0x%08x)", BT_ERROR_NOT_SUPPORTED);
return BT_ERROR_NOT_SUPPORTED;
}
- BT_CHECK_INIT_STATUS();
if (bluetooth_is_le_scanning() == TRUE) {
BT_ERR("NOW_IN_PROGRESS(0x%08x)",
BT_ERROR_NOW_IN_PROGRESS); /* LCOV_EXCL_LINE */