[PATCH 3/3] android/gatt: Don't try send responses after process_dev_pending_req()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Process_dev_pending_requests call send_pending_respone, so we don't
have to call it again.
---
 android/gatt.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/android/gatt.c b/android/gatt.c
index f2fd17d..9bbcc48 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -4346,11 +4346,6 @@ static uint8_t read_by_type(const uint8_t *cmd, uint16_t cmd_len,
 
 	process_dev_pending_requests(device, ATT_OP_READ_BY_TYPE_REQ);
 
-	/* We send immediate if no data left to be filled by async callbacks */
-	if (!queue_find(device->pending_requests, match_pending_dev_request,
-									NULL))
-		send_dev_pending_response(device, ATT_OP_READ_BY_TYPE_REQ);
-
 	return 0;
 }
 
@@ -4565,11 +4560,6 @@ static uint8_t find_by_type_request(const uint8_t *cmd, uint16_t cmd_len,
 
 	process_dev_pending_requests(device, ATT_OP_FIND_BY_TYPE_REQ);
 
-	/* Send if no response_data elements left to be filled by callbacks */
-	if (!queue_find(device->pending_requests, match_pending_dev_request,
-									NULL))
-		send_dev_pending_response(device, cmd[0]);
-
 	return 0;
 }
 
-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux