adapter: Set max_filter to 0 not empty if filter not supported 43/275843/2 accepted/tizen/unified/20220615.135403 submit/tizen/20220614.010252
authorWootak Jung <wootak.jung@samsung.com>
Thu, 2 Jun 2022 23:19:55 +0000 (08:19 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 2 Jun 2022 23:30:21 +0000 (08:30 +0900)
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

index 57b32b6..6d5cc23 100644 (file)
@@ -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);