From 43afd9b1597a1dd81842f4dbf29146dbe1509f5a Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Fri, 3 Jun 2022 08:19:55 +0900 Subject: [PATCH] adapter: Set max_filter to 0 not empty if filter not supported D/BLUETOOTH_HAL( 6284): bt-hal-adapter-dbus-handler.c: __bt_adapter_all_properties_cb(862) > LE Supported features D/BLUETOOTH_HAL( 6284): bt-hal-adapter-dbus-handler.c: __bt_adapter_all_properties_cb(888) > le supported features values are NOT provided by Stack ... E/BLUETOOTH_HAL( 2510): bt-hal-adapter-le.c: _bt_hal_get_available_adv_slot_id(347) > le_adv_slot is NULL E/BLUETOOTH_HAL( 2510): bt-hal-gatt-server.c: bt_hal_gatts_allocate_adv_slot(3637) > failed to get the adv_slot E/BLUETOOTH_HAL( 2510): bt-hal-gatt-server.c: gatt_server_multi_adv_enable(3749) > failed to get adv_slot Change-Id: I41515e7efa47dbb2255451e845b209a31d0a6b5f --- src/adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter.c b/src/adapter.c index 57b32b6..6d5cc23 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -7453,7 +7453,7 @@ static gboolean property_get_supported_le_features( if (value <= 0) value = SCAN_FILTER_SLOTS_MAX; #endif - if (value > 0) { + if (value >= 0) { str = g_strdup("max_filter"); dbus_message_iter_append_basic(&entry, DBUS_TYPE_STRING, &str); -- 2.7.4