Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2029e247 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes I9dc3c034,I34bb2687

* changes:
  csis: Reverse parameter order for logging observer data
  csis: Check if group exist before rank sort
parents 39b6f072 62987cea
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -1106,6 +1106,11 @@ class CsisClientImpl : public CsisClient {


    csis_instance->SetRank((value[0]));
    csis_instance->SetRank((value[0]));
    auto csis_group = FindCsisGroup(csis_instance->GetGroupId());
    auto csis_group = FindCsisGroup(csis_instance->GetGroupId());
    if (!csis_group) {
      LOG(ERROR) << __func__ << " Unknown group id yet";
      return;
    }

    csis_group->SortByCsisRank();
    csis_group->SortByCsisRank();


    if (notify_valid_services) NotifyCsisDeviceValidAndStoreIfNeeded(device);
    if (notify_valid_services) NotifyCsisDeviceValidAndStoreIfNeeded(device);
@@ -1251,8 +1256,8 @@ class CsisClientImpl : public CsisClient {
  void CsisActiveObserverSet(bool enable) {
  void CsisActiveObserverSet(bool enable) {
    bool is_ad_type_filter_supported =
    bool is_ad_type_filter_supported =
        bluetooth::shim::is_ad_type_filter_supported();
        bluetooth::shim::is_ad_type_filter_supported();
    LOG_INFO("Group_id %d: enable: %d, is_ad_type_filter_supported: %d", enable,
    LOG_INFO("Group_id %d: enable: %d, is_ad_type_filter_supported: %d",
             discovering_group_, is_ad_type_filter_supported);
             discovering_group_, enable, is_ad_type_filter_supported);
    if (is_ad_type_filter_supported) {
    if (is_ad_type_filter_supported) {
      bluetooth::shim::set_ad_type_rsi_filter(enable);
      bluetooth::shim::set_ad_type_rsi_filter(enable);
    } else {
    } else {