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

Commit fcb80ba8 authored by Sarvesh Kalwit's avatar Sarvesh Kalwit
Browse files

floss: Complete BTIF to Floss GATT attribute type conversions

Fix previously incomplete GATT attribute type conversions from the
Bluetooth Interface to Floss, including correctly setting GATT
attribute permissions.

Bug: 328812649
Test: m -j && manually with btclient:
Create a GATT attribute with non-null permissions, and observe they
remain non-zero after the parent service has been added.
Flag: Exempt, Floss-only change

Change-Id: I2a1a681361b56a0ed4c2331bfe104c656a90f5c3
parent c68a22c6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -807,7 +807,7 @@ impl BluetoothGattService {
                            elem.uuid.uu,
                            elem.attribute_handle as i32,
                            elem.properties as i32,
                            0,
                            elem.permissions as i32,
                        )),
                        None => {
                            // TODO(b/193685325): Log error.
@@ -822,7 +822,7 @@ impl BluetoothGattService {
                            Some(c) => c.descriptors.push(BluetoothGattDescriptor::new(
                                elem.uuid.uu,
                                elem.attribute_handle as i32,
                                0,
                                elem.permissions as i32,
                            )),
                            None => {
                                // TODO(b/193685325): Log error.