android/gatt: Fix not sending notification for signed write

Signed write has no response and notificatino should be send to
Android Framework in case of write succeed.
This commit is contained in:
Szymon Janc 2014-07-14 14:12:06 +02:00
parent 897025255d
commit 688218cd94

View File

@ -3092,7 +3092,8 @@ failed:
* of error and write with no response
*/
if (status != HAL_STATUS_SUCCESS ||
cmd->write_type == GATT_WRITE_TYPE_NO_RESPONSE) {
cmd->write_type == GATT_WRITE_TYPE_NO_RESPONSE ||
cmd->write_type == GATT_WRITE_TYPE_SIGNED) {
int32_t gatt_status = (status == HAL_STATUS_SUCCESS) ?
GATT_SUCCESS : GATT_FAILURE;