Message ID | 20210926170039.49865-2-martinez.dagan@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Luiz Von Dentz |
Headers | show |
Series | gatt: remove superfluous extended properties | expand |
Context | Check | Description |
---|---|---|
tedd_an/checkpatch | success | Checkpatch PASS |
tedd_an/gitlint | success | Gitlint PASS |
tedd_an/setupell | success | Setup ELL PASS |
tedd_an/buildprep | success | Build Prep PASS |
tedd_an/build | success | Build Configuration PASS |
tedd_an/makecheck | success | Make Check PASS |
tedd_an/makedistcheck | success | Make Distcheck PASS |
tedd_an/build_extell | success | Build External ELL PASS |
tedd_an/build_extell_make | success | Build Make with External ELL PASS |
This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=553055 ---Test result--- Test Summary: CheckPatch PASS 0.45 seconds GitLint PASS 0.29 seconds Prep - Setup ELL PASS 50.88 seconds Build - Prep PASS 0.24 seconds Build - Configure PASS 9.15 seconds Build - Make PASS 219.00 seconds Make Check PASS 9.85 seconds Make Distcheck PASS 256.92 seconds Build w/ext ELL - Configure PASS 8.96 seconds Build w/ext ELL - Make PASS 207.23 seconds --- Regards, Linux Bluetooth
Hi Dagan, On Sun, Sep 26, 2021 at 11:00 AM <bluez.test.bot@gmail.com> wrote: > > This is automated email and please do not reply to this email! > > Dear submitter, > > Thank you for submitting the patches to the linux bluetooth mailing list. > This is a CI test results with your patch series: > PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=553055 > > ---Test result--- > > Test Summary: > CheckPatch PASS 0.45 seconds > GitLint PASS 0.29 seconds > Prep - Setup ELL PASS 50.88 seconds > Build - Prep PASS 0.24 seconds > Build - Configure PASS 9.15 seconds > Build - Make PASS 219.00 seconds > Make Check PASS 9.85 seconds > Make Distcheck PASS 256.92 seconds > Build w/ext ELL - Configure PASS 8.96 seconds > Build w/ext ELL - Make PASS 207.23 seconds > > > > --- > Regards, > Linux Bluetooth Applied, thanks.
diff --git a/src/gatt-database.c b/src/gatt-database.c index 99c95f2d6..1f7ce5f02 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -1656,27 +1656,21 @@ static bool parse_chrc_flags(DBusMessageIter *array, uint8_t *props, *ext_props |= BT_GATT_CHRC_EXT_PROP_WRITABLE_AUX; } else if (!strcmp("encrypt-read", flag)) { *props |= BT_GATT_CHRC_PROP_READ; - *ext_props |= BT_GATT_CHRC_EXT_PROP_ENC_READ; *perm |= BT_ATT_PERM_READ | BT_ATT_PERM_READ_ENCRYPT; } else if (!strcmp("encrypt-write", flag)) { *props |= BT_GATT_CHRC_PROP_WRITE; - *ext_props |= BT_GATT_CHRC_EXT_PROP_ENC_WRITE; *perm |= BT_ATT_PERM_WRITE | BT_ATT_PERM_WRITE_ENCRYPT; } else if (!strcmp("encrypt-authenticated-read", flag)) { *props |= BT_GATT_CHRC_PROP_READ; - *ext_props |= BT_GATT_CHRC_EXT_PROP_AUTH_READ; *perm |= BT_ATT_PERM_READ | BT_ATT_PERM_READ_AUTHEN; } else if (!strcmp("encrypt-authenticated-write", flag)) { *props |= BT_GATT_CHRC_PROP_WRITE; - *ext_props |= BT_GATT_CHRC_EXT_PROP_AUTH_WRITE; *perm |= BT_ATT_PERM_WRITE | BT_ATT_PERM_WRITE_AUTHEN; } else if (!strcmp("secure-read", flag)) { *props |= BT_GATT_CHRC_PROP_READ; - *ext_props |= BT_GATT_CHRC_EXT_PROP_AUTH_READ; *perm |= BT_ATT_PERM_READ | BT_ATT_PERM_READ_SECURE; } else if (!strcmp("secure-write", flag)) { *props |= BT_GATT_CHRC_PROP_WRITE; - *ext_props |= BT_GATT_CHRC_EXT_PROP_AUTH_WRITE; *perm |= BT_ATT_PERM_WRITE | BT_ATT_PERM_WRITE_SECURE; } else if (!strcmp("authorize", flag)) { *req_prep_authorization = true; diff --git a/src/shared/att-types.h b/src/shared/att-types.h index 3adc05d9e..a08b24155 100644 --- a/src/shared/att-types.h +++ b/src/shared/att-types.h @@ -151,14 +151,6 @@ struct bt_att_pdu_error_rsp { /* GATT Characteristic Extended Properties Bitfield values */ #define BT_GATT_CHRC_EXT_PROP_RELIABLE_WRITE 0x01 #define BT_GATT_CHRC_EXT_PROP_WRITABLE_AUX 0x02 -#define BT_GATT_CHRC_EXT_PROP_ENC_READ 0x04 -#define BT_GATT_CHRC_EXT_PROP_ENC_WRITE 0x08 -#define BT_GATT_CHRC_EXT_PROP_ENC (BT_GATT_CHRC_EXT_PROP_ENC_READ | \ - BT_GATT_CHRC_EXT_PROP_ENC_WRITE) -#define BT_GATT_CHRC_EXT_PROP_AUTH_READ 0x10 -#define BT_GATT_CHRC_EXT_PROP_AUTH_WRITE 0x20 -#define BT_GATT_CHRC_EXT_PROP_AUTH (BT_GATT_CHRC_EXT_PROP_AUTH_READ | \ - BT_GATT_CHRC_EXT_PROP_AUTH_WRITE) /* GATT Characteristic Client Features Bitfield values */ #define BT_GATT_CHRC_CLI_FEAT_ROBUST_CACHING 0x01