Message ID | 20211127222132.14351-1-dev.git@javispedro.com |
---|---|
State | New |
Headers | show |
Series | gatt-client: when disconnected return default MTU for GattCharacteristic1.MTU | expand |
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=586773 ---Test result--- Test Summary: CheckPatch PASS 1.34 seconds GitLint PASS 0.93 seconds Prep - Setup ELL PASS 51.78 seconds Build - Prep PASS 0.51 seconds Build - Configure PASS 9.44 seconds Build - Make PASS 222.52 seconds Make Check PASS 9.90 seconds Make Distcheck PASS 263.17 seconds Build w/ext ELL - Configure PASS 9.56 seconds Build w/ext ELL - Make PASS 209.87 seconds --- Regards, Linux Bluetooth
Hi Javier, On Mon, Nov 29, 2021 at 1:14 PM <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=586773 > > ---Test result--- > > Test Summary: > CheckPatch PASS 1.34 seconds > GitLint PASS 0.93 seconds > Prep - Setup ELL PASS 51.78 seconds > Build - Prep PASS 0.51 seconds > Build - Configure PASS 9.44 seconds > Build - Make PASS 222.52 seconds > Make Check PASS 9.90 seconds > Make Distcheck PASS 263.17 seconds > Build w/ext ELL - Configure PASS 9.56 seconds > Build w/ext ELL - Make PASS 209.87 seconds > > > > --- > Regards, > Linux Bluetooth Applied, thanks.
diff --git a/src/gatt-client.c b/src/gatt-client.c index de18bea9708e..6ee984db9410 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c @@ -883,10 +883,7 @@ static gboolean characteristic_get_mtu(const GDBusPropertyTable *property, uint16_t mtu; att = bt_gatt_client_get_att(gatt); - if (!att) - return FALSE; - - mtu = bt_att_get_mtu(att); + mtu = att ? bt_att_get_mtu(att) : BT_ATT_DEFAULT_LE_MTU; dbus_message_iter_append_basic(iter, DBUS_TYPE_UINT16, &mtu);