monitor: Fix printing params for HCI Intel DDC command
PATCH 1/1 monitor: Fix printing params for HCI Intel DDC command
From: Tedd Ho-Jeong An <[email protected]>
The offset of value for HCI Intel DDC command is incorrect. HCI Intel DDC parameter has a combination of following structure:
struct intel_ddc {
u8 len;
u16 id;
u8 *value;
}The offset of value should be sum of len and id which is 3.
--- monitor/intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
monitor/intel.c +1 -1
@@ -437,7 +437,7 @@ static void ddc_config_write_cmd(const void *data, uint8_t size)uint16_t param_id =get_le16 (data +1 );print_field ("Identifier: 0x%4.4x" , param_id); -packet_hexdump (data +2 , param_len -2 ); +packet_hexdump (data +3 , param_len -2 ); data += param_len +1 ; size -= param_len +1 ;
Signature · 1 line
2.7.4
Hi Tedd,
Quoted 30 lines · Tedd Ho-Jeong An
From: Tedd Ho-Jeong An <[email protected]>
The offset of value for HCI Intel DDC command is incorrect. HCI Intel DDC parameter has a combination of following structure:
struct intel_ddc { u8 len; u16 id; u8 *value; }The offset of value should be sum of len and id which is 3.
--- monitor/intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)monitor/intel.c +1
-2@@ -437,7 +437,7 @@ static void ddc_config_write_cmd(const void *data, uint8_t size)uint16_t param_id =get_le16 (data +1 );print_field ("Identifier: 0x%4.4x" , param_id); -packet_hexdump (data +2 , param_len -2 ); +packet_hexdump (data +3 , param_len -2 ); data += param_len +1 ; size -= param_len +1 ; --
Quoted 1 line
2.7.4
Applied, thanks.
Signature · 1 line
Luiz Augusto von Dentz