Skip to contentSkip to conversation

android/tester: Fix remote advertising data

PATCH Applied Szymon Janc 2 participants 2 messages Dec 21, 2017 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 android/tester: Fix remote advertising data

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(-)
android/tester-main.c +1 -2
index 3a557923b..e9b13537a 100644
@@ -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);
Signature · 1 line
2.14.3
#1 lore raw

Hi Szymon,

Quoted 5 lines · 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(-)

Applied. Thanks.

Johan