monitor: Fix adv_handle size in the set info transfer packet
authorJakub Tyszkowski <jakub.tyszkowski@codecoup.pl>
Fri, 21 Jul 2023 12:03:17 +0000 (14:03 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:03 +0000 (19:04 +0530)
As per Bluetooth Core 5.4 Vol 4. Part E, 7.8.90,
adv_handle is 1 octet size and not 2.

monitor/bt.h

index 4596df4..fc45f9a 100755 (executable)
@@ -2608,7 +2608,7 @@ struct bt_hci_cmd_periodic_sync_trans {
 struct bt_hci_cmd_pa_set_info_trans {
        uint16_t handle;
        uint16_t service_data;
-       uint16_t adv_handle;
+       uint8_t adv_handle;
 } __attribute__ ((packed));
 
 #define BT_HCI_CMD_PA_SYNC_TRANS_PARAMS                0x205c