diff options
author | Jakub Tyszkowski <jakub.tyszkowski@tieto.com> | 2015-01-08 10:17:40 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2015-01-13 14:46:53 +0100 |
commit | 51a8bb208d4cb8d1133f6e97173dffe75823d893 (patch) | |
tree | a71c7ae3b1da267752251fb1ffe64fdaf17fedf1 /android/tester-gatt.c | |
parent | 20c6a6cd64fcbd6166ced434e34dc4f1d4d50837 (diff) | |
download | bluez-51a8bb208d4cb8d1133f6e97173dffe75823d893.tar.gz |
android/tester: Add macro improving pdu send procedure
As of now when we want to send response from remote device, we compose
pdu from handle and value, which are then copied into fixed size pdu
with predefined header. With this macro we will be able to pass up to
3 iovectors which are then send without additional copying. It also
quite generic and can be used to any other kind of data processing nad
not only for sending pdus.
Diffstat (limited to 'android/tester-gatt.c')
-rw-r--r-- | android/tester-gatt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/tester-gatt.c b/android/tester-gatt.c index f4d22fd5a..610c1b4bc 100644 --- a/android/tester-gatt.c +++ b/android/tester-gatt.c @@ -1079,7 +1079,7 @@ static void gatt_att_pdu_modify(void) { struct test_data *data = tester_get_data(); struct step *current_data_step = queue_peek_head(data->steps); - struct iovec *store_pdu = current_data_step->set_data_to; + struct iovec *store_pdu = current_data_step->set_data_2; struct step *step = g_new0(struct step, 1); unsigned char *raw_pdu = store_pdu->iov_base; int set_data_len = current_data_step->set_data_len; |