Skip to content

Commit c00ffff

Browse files
nimble/host: fix ble_svc_gatt_cl_sup_feat_access
Fix ble_svc_gatt_cl_sup_feat_access. If an error occured while client writes to client supported features only BLE_ATT_ERR_UNLIKELY was returned.
1 parent d869f39 commit c00ffff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nimble/host/services/gatt/src/ble_svc_gatt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ ble_svc_gatt_cl_sup_feat_access(uint16_t conn_handle, uint16_t attr_handle,
113113
return 0;
114114
}
115115
if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_CHR) {
116-
if (ble_gatts_peer_cl_sup_feat_update(conn_handle, ctxt->om)) {
117-
return BLE_ATT_ERR_UNLIKELY;
116+
rc = ble_gatts_peer_cl_sup_feat_update(conn_handle, ctxt->om);
117+
if (rc != 0) {
118+
return rc;
118119
}
119120
}
120121

0 commit comments

Comments
 (0)