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

Commit 9774be2e authored by Bailey Forrest's avatar Bailey Forrest
Browse files

bta_gattc_cache: Initialize gatt_db_elemement_t permissions to 0

Previously this value was uninitialized. Attribute permissions are not
discovable via the attribute protocol.

Bug: None
Test: Build. permissions are 0.
Change-Id: I5fdac3b90683245a0af0d6e27a2873499ca90e6c
parent a7c60745
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1085,6 +1085,10 @@ void bta_gattc_fill_gatt_db_el(btgatt_db_element_t* p_attr,
  p_attr->end_handle = e_handle;
  p_attr->id = id;
  p_attr->properties = prop;

  // Permissions are not discoverable using the attribute protocol.
  // Core 5.0, Part F, 3.2.5 Attribute Permissions
  p_attr->permissions = 0;
  bta_to_btif_uuid(&p_attr->uuid, &uuid);
}