diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com> | 2015-04-29 11:15:52 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2015-05-08 14:54:05 +0200 |
commit | 6a44a69acead3e0d5a5bf5879f7ae312d419e022 (patch) | |
tree | a08d3bf5979cdb7931922d08473f14929470523e /android/gatt.c | |
parent | 321c8df9be8660e1e4ccb7fa61c6031418fa1df8 (diff) | |
download | bluez-6a44a69acead3e0d5a5bf5879f7ae312d419e022.tar.gz |
android/gatt: Send notify mtu change for BR/EDR success conn
This patch fixes sending mtu change notification for BR/EDR gatt
connections. For unsuccessful connection, notify mtu change shouldn't be
sent. This avoid sending bogus mtu values as notify mtu change.
Diffstat (limited to 'android/gatt.c')
-rw-r--r-- | android/gatt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/gatt.c b/android/gatt.c index 18d55b06e..625b7dfbf 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -1652,7 +1652,7 @@ reply: &data); /* For BR/EDR notify about MTU since it is not negotiable*/ - if (cid != ATT_CID) + if (cid != ATT_CID && status == GATT_SUCCESS) queue_foreach(app_connections, notify_mtu_change, dev); device_unref(dev); |