Skip to content

Commit 05755df

Browse files
joerchannashif
authored andcommitted
Bluetooth: host: Ignore return value of change-aware when reading DBhash
Ignore the return value of the bt_gatt_change_aware function when the client is reading the database hash characteristic value. This is the point where the client becomes change-aware, so nothing else should be done if the client is change-unaware. Fixes: #38012 Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
1 parent 6440c9e commit 05755df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/gatt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ static ssize_t db_hash_read(struct bt_conn *conn,
783783
* The client reads the Database Hash characteristic and then the server
784784
* receives another ATT request from the client.
785785
*/
786-
bt_gatt_change_aware(conn, true);
786+
(void)bt_gatt_change_aware(conn, true);
787787

788788
return bt_gatt_attr_read(conn, attr, buf, len, offset, db_hash.hash,
789789
sizeof(db_hash.hash));

0 commit comments

Comments
 (0)