* [PATCH] android/tester: Fix remote advertising data
@ 2017-12-21 8:43 Szymon Janc
2017-12-21 15:58 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Szymon Janc @ 2017-12-21 8:43 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Szymon Janc
Advertising Data doesn't have terminator field like EIR. This was
causing error logs from kernel when data length was corrected.
---
android/tester-main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/android/tester-main.c b/android/tester-main.c
index 3a557923b..e9b13537a 100644
--- a/android/tester-main.c
+++ b/android/tester-main.c
@@ -2722,12 +2722,11 @@ void emu_setup_powered_remote_action(void)
if ((data->hciemu_type == HCIEMU_TYPE_LE) ||
(data->hciemu_type == HCIEMU_TYPE_BREDRLE)) {
- uint8_t adv[4];
+ uint8_t adv[3];
adv[0] = 0x02; /* Field length */
adv[1] = 0x01; /* Flags */
adv[2] = 0x02; /* Flags value */
- adv[3] = 0x00; /* Field terminator */
bthost_set_adv_data(bthost, adv, sizeof(adv));
bthost_set_adv_enable(bthost, 0x01);
--
2.14.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-21 15:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-21 8:43 [PATCH] android/tester: Fix remote advertising data Szymon Janc
2017-12-21 15:58 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).