From: Wootak Jung Date: Thu, 2 Jun 2022 23:19:55 +0000 (+0900) Subject: adapter: Set max_filter to 0 not empty if filter not supported X-Git-Tag: accepted/tizen/unified/20220615.135403^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43afd9b1597a1dd81842f4dbf29146dbe1509f5a;p=platform%2Fupstream%2Fbluez.git 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 --- 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);