All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/4] Minor monitor changes around Broadcast
@ 2023-07-21 12:03 Łukasz Rymanowski
  2023-07-21 12:03 ` [PATCH BlueZ 1/4] monitor: Fix adv_handle size in the set info transfer packet Łukasz Rymanowski
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Łukasz Rymanowski @ 2023-07-21 12:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Łukasz Rymanowski

Grzegorz Kolodziejczyk (1):
  monitor: Fix invalid Create BIG Test command

Jakub Tyszkowski (1):
  monitor: Fix adv_handle size in the set info transfer packet

Łukasz Rymanowski (2):
  btmon: Fix obvious typo
  btmon: Make BIG identifier consistent

 monitor/bt.h     | 9 ++++-----
 monitor/packet.c | 6 +++---
 2 files changed, 7 insertions(+), 8 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH BlueZ 1/4] monitor: Fix adv_handle size in the set info transfer packet
  2023-07-21 12:03 [PATCH BlueZ 0/4] Minor monitor changes around Broadcast Łukasz Rymanowski
@ 2023-07-21 12:03 ` Łukasz Rymanowski
  2023-07-21 14:33   ` Minor monitor changes around Broadcast bluez.test.bot
  2023-07-21 12:03 ` [PATCH BlueZ 2/4] monitor: Fix invalid Create BIG Test command Łukasz Rymanowski
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Łukasz Rymanowski @ 2023-07-21 12:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Jakub Tyszkowski

From: Jakub Tyszkowski <jakub.tyszkowski@codecoup.pl>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/monitor/bt.h b/monitor/bt.h
index 37fcdaeaa..131024e46 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -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
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH BlueZ 2/4] monitor: Fix invalid Create BIG Test command
  2023-07-21 12:03 [PATCH BlueZ 0/4] Minor monitor changes around Broadcast Łukasz Rymanowski
  2023-07-21 12:03 ` [PATCH BlueZ 1/4] monitor: Fix adv_handle size in the set info transfer packet Łukasz Rymanowski
@ 2023-07-21 12:03 ` Łukasz Rymanowski
  2023-07-21 12:03 ` [PATCH BlueZ 3/4] btmon: Fix obvious typo Łukasz Rymanowski
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Łukasz Rymanowski @ 2023-07-21 12:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Grzegorz Kolodziejczyk

From: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@codecoup.pl>

As per Bluetooth Core 5.4 Vol 4 Part E, 7.8.104,
max pdu is 2 octect long and there is no adv_handle before encyption
flag
---
 monitor/bt.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/monitor/bt.h b/monitor/bt.h
index 131024e46..ea24a076e 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -2777,14 +2777,13 @@ struct bt_hci_bis_test {
 	uint16_t iso_interval;
 	uint8_t  nse;
 	uint16_t sdu;
-	uint8_t  pdu;
+	uint16_t  pdu;
 	uint8_t  phy;
 	uint8_t  packing;
 	uint8_t  framing;
 	uint8_t  bn;
 	uint8_t  irc;
 	uint8_t  pto;
-	uint8_t  adv_handle;
 	uint8_t  encryption;
 	uint8_t  bcode[16];
 } __attribute__ ((packed));
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH BlueZ 3/4] btmon: Fix obvious typo
  2023-07-21 12:03 [PATCH BlueZ 0/4] Minor monitor changes around Broadcast Łukasz Rymanowski
  2023-07-21 12:03 ` [PATCH BlueZ 1/4] monitor: Fix adv_handle size in the set info transfer packet Łukasz Rymanowski
  2023-07-21 12:03 ` [PATCH BlueZ 2/4] monitor: Fix invalid Create BIG Test command Łukasz Rymanowski
@ 2023-07-21 12:03 ` Łukasz Rymanowski
  2023-07-21 12:03 ` [PATCH BlueZ 4/4] btmon: Make BIG identifier consistent Łukasz Rymanowski
  2023-07-21 20:20 ` [PATCH BlueZ 0/4] Minor monitor changes around Broadcast patchwork-bot+bluetooth
  4 siblings, 0 replies; 7+ messages in thread
From: Łukasz Rymanowski @ 2023-07-21 12:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Łukasz Rymanowski

---
 monitor/packet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/monitor/packet.c b/monitor/packet.c
index f2167fb52..fd1e9e034 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -11593,7 +11593,7 @@ static void le_big_complete_evt(struct timeval *tv, uint16_t index,
 	print_le_phy("PHY", evt->phy);
 	print_field("NSE: %u", evt->nse);
 	print_field("BN: %u", evt->bn);
-	print_field("PTO: %u", evt->bn);
+	print_field("PTO: %u", evt->pto);
 	print_field("IRC: %u", evt->irc);
 	print_field("Maximum PDU: %u", evt->max_pdu);
 	print_slot_125("ISO Interval", evt->interval);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH BlueZ 4/4] btmon: Make BIG identifier consistent
  2023-07-21 12:03 [PATCH BlueZ 0/4] Minor monitor changes around Broadcast Łukasz Rymanowski
                   ` (2 preceding siblings ...)
  2023-07-21 12:03 ` [PATCH BlueZ 3/4] btmon: Fix obvious typo Łukasz Rymanowski
@ 2023-07-21 12:03 ` Łukasz Rymanowski
  2023-07-21 20:20 ` [PATCH BlueZ 0/4] Minor monitor changes around Broadcast patchwork-bot+bluetooth
  4 siblings, 0 replies; 7+ messages in thread
From: Łukasz Rymanowski @ 2023-07-21 12:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Łukasz Rymanowski

Bluetooth spec uses BIG Handle as a BIG identifier.
Btmon sometimes use this and sometimes BIG ID.
This patch makes code consistent
---
 monitor/bt.h     | 4 ++--
 monitor/packet.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/monitor/bt.h b/monitor/bt.h
index ea24a076e..b60263fa0 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -2789,7 +2789,7 @@ struct bt_hci_bis_test {
 } __attribute__ ((packed));
 
 struct bt_hci_cmd_le_create_big_test {
-	uint8_t  big_id;
+	uint8_t  big_handle;
 	uint8_t  adv_handle;
 	uint8_t  num_bis;
 	struct bt_hci_bis_test bis[0];
@@ -3676,7 +3676,7 @@ struct bt_hci_evt_le_big_sync_estabilished {
 
 #define BT_HCI_EVT_LE_BIG_SYNC_LOST		0x1e
 struct bt_hci_evt_le_big_sync_lost {
-	uint8_t  big_id;
+	uint8_t  big_handle;
 	uint8_t  reason;
 } __attribute__ ((packed));
 
diff --git a/monitor/packet.c b/monitor/packet.c
index fd1e9e034..f581a8e72 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -8811,7 +8811,7 @@ static void le_create_big_cmd_test_cmd(uint16_t index, const void *data,
 {
 	const struct bt_hci_cmd_le_create_big_test *cmd = data;
 
-	print_field("BIG ID: 0x%2.2x", cmd->big_id);
+	print_field("BIG Handle: 0x%2.2x", cmd->big_handle);
 	print_field("Advertising Handle: 0x%2.2x", cmd->adv_handle);
 	print_field("Number of BIS: %u", cmd->num_bis);
 
@@ -11633,7 +11633,7 @@ static void le_big_sync_lost_evt(struct timeval *tv, uint16_t index,
 {
 	const struct bt_hci_evt_le_big_sync_lost *evt = data;
 
-	print_field("BIG ID: 0x%2.2x", evt->big_id);
+	print_field("BIG Handle: 0x%2.2x", evt->big_handle);
 	print_reason(evt->reason);
 }
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* RE: Minor monitor changes around Broadcast
  2023-07-21 12:03 ` [PATCH BlueZ 1/4] monitor: Fix adv_handle size in the set info transfer packet Łukasz Rymanowski
@ 2023-07-21 14:33   ` bluez.test.bot
  0 siblings, 0 replies; 7+ messages in thread
From: bluez.test.bot @ 2023-07-21 14:33 UTC (permalink / raw)
  To: linux-bluetooth, lukasz.rymanowski

[-- Attachment #1: Type: text/plain, Size: 1717 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=768234

---Test result---

Test Summary:
CheckPatch                    PASS      1.71 seconds
GitLint                       PASS      1.17 seconds
BuildEll                      PASS      33.72 seconds
BluezMake                     PASS      1198.26 seconds
MakeCheck                     PASS      13.50 seconds
MakeDistcheck                 PASS      201.39 seconds
CheckValgrind                 PASS      325.06 seconds
CheckSmatch                   WARNING   449.45 seconds
bluezmakeextell               PASS      132.61 seconds
IncrementalBuild              PASS      3938.19 seconds
ScanBuild                     PASS      1351.01 seconds

Details
##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:
monitor/packet.c: note: in included file:monitor/display.h:82:26: warning: Variable length array is used.monitor/packet.c:1832:26: warning: Variable length array is used.monitor/packet.c: note: in included file:monitor/bt.h:3551:52: warning: array of flexible structuresmonitor/bt.h:3539:40: warning: array of flexible structuresmonitor/packet.c: note: in included file:monitor/display.h:82:26: warning: Variable length array is used.monitor/packet.c:1832:26: warning: Variable length array is used.monitor/packet.c: note: in included file:monitor/bt.h:3551:52: warning: array of flexible structuresmonitor/bt.h:3539:40: warning: array of flexible structures


---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH BlueZ 0/4] Minor monitor changes around Broadcast
  2023-07-21 12:03 [PATCH BlueZ 0/4] Minor monitor changes around Broadcast Łukasz Rymanowski
                   ` (3 preceding siblings ...)
  2023-07-21 12:03 ` [PATCH BlueZ 4/4] btmon: Make BIG identifier consistent Łukasz Rymanowski
@ 2023-07-21 20:20 ` patchwork-bot+bluetooth
  4 siblings, 0 replies; 7+ messages in thread
From: patchwork-bot+bluetooth @ 2023-07-21 20:20 UTC (permalink / raw)
  To: =?utf-8?q?=C5=81ukasz_Rymanowski_=3Clukasz=2Erymanowski=40codecoup=2Epl=3E?=
  Cc: linux-bluetooth

Hello:

This series was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Fri, 21 Jul 2023 14:03:16 +0200 you wrote:
> Grzegorz Kolodziejczyk (1):
>   monitor: Fix invalid Create BIG Test command
> 
> Jakub Tyszkowski (1):
>   monitor: Fix adv_handle size in the set info transfer packet
> 
> Łukasz Rymanowski (2):
>   btmon: Fix obvious typo
>   btmon: Make BIG identifier consistent
> 
> [...]

Here is the summary with links:
  - [BlueZ,1/4] monitor: Fix adv_handle size in the set info transfer packet
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=4337eb25b04c
  - [BlueZ,2/4] monitor: Fix invalid Create BIG Test command
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=cc9f3a8e510a
  - [BlueZ,3/4] btmon: Fix obvious typo
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=aee361c8eb0f
  - [BlueZ,4/4] btmon: Make BIG identifier consistent
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=d8ca06631b74

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-07-21 20:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-21 12:03 [PATCH BlueZ 0/4] Minor monitor changes around Broadcast Łukasz Rymanowski
2023-07-21 12:03 ` [PATCH BlueZ 1/4] monitor: Fix adv_handle size in the set info transfer packet Łukasz Rymanowski
2023-07-21 14:33   ` Minor monitor changes around Broadcast bluez.test.bot
2023-07-21 12:03 ` [PATCH BlueZ 2/4] monitor: Fix invalid Create BIG Test command Łukasz Rymanowski
2023-07-21 12:03 ` [PATCH BlueZ 3/4] btmon: Fix obvious typo Łukasz Rymanowski
2023-07-21 12:03 ` [PATCH BlueZ 4/4] btmon: Make BIG identifier consistent Łukasz Rymanowski
2023-07-21 20:20 ` [PATCH BlueZ 0/4] Minor monitor changes around Broadcast patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.