All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ v1] src/shared: Make default length handle EA
@ 2024-05-01 19:28 Luiz Augusto von Dentz
  2024-05-01 21:04 ` [BlueZ,v1] " bluez.test.bot
  2024-05-02 14:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2024-05-01 19:28 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

By default bt_ad was setting just BT_AD_MAX_DATA_LEN (31) which is not
enough to handle devices advertising using EA, so this switches the
default to be BT_EA_MAX_DATA_LEN (251) since EA is much more common
nowadays and for those case where the it is not supported (e.g. for
advertisers without EA support) then shall be using bt_ad_set_max_len
to adjust the maximum length.

Fixes: https://github.com/bluez/bluez/issues/832
---
 src/shared/ad.c | 2 +-
 src/shared/ad.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/shared/ad.c b/src/shared/ad.c
index 2d6fc628eabc..f3fb428e25c6 100644
--- a/src/shared/ad.c
+++ b/src/shared/ad.c
@@ -48,7 +48,7 @@ struct bt_ad *bt_ad_new(void)
 	struct bt_ad *ad;
 
 	ad = new0(struct bt_ad, 1);
-	ad->max_len = BT_AD_MAX_DATA_LEN;
+	ad->max_len = BT_EA_MAX_DATA_LEN;
 	ad->service_uuids = queue_new();
 	ad->manufacturer_data = queue_new();
 	ad->solicit_uuids = queue_new();
diff --git a/src/shared/ad.h b/src/shared/ad.h
index 820b9177562b..11900706f9ed 100644
--- a/src/shared/ad.h
+++ b/src/shared/ad.h
@@ -15,6 +15,7 @@
 #include "lib/uuid.h"
 
 #define BT_AD_MAX_DATA_LEN		31
+#define BT_EA_MAX_DATA_LEN		251
 #define BT_PA_MAX_DATA_LEN		252
 
 #define BT_AD_FLAGS			0x01
-- 
2.44.0


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

* RE: [BlueZ,v1] src/shared: Make default length handle EA
  2024-05-01 19:28 [PATCH BlueZ v1] src/shared: Make default length handle EA Luiz Augusto von Dentz
@ 2024-05-01 21:04 ` bluez.test.bot
  2024-05-02 14:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-05-01 21:04 UTC (permalink / raw)
  To: linux-bluetooth, luiz.dentz

[-- Attachment #1: Type: text/plain, Size: 948 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=849727

---Test result---

Test Summary:
CheckPatch                    PASS      0.40 seconds
GitLint                       PASS      0.29 seconds
BuildEll                      PASS      24.58 seconds
BluezMake                     PASS      1740.81 seconds
MakeCheck                     PASS      13.03 seconds
MakeDistcheck                 PASS      182.12 seconds
CheckValgrind                 PASS      249.53 seconds
CheckSmatch                   PASS      351.21 seconds
bluezmakeextell               PASS      119.59 seconds
IncrementalBuild              PASS      1507.30 seconds
ScanBuild                     PASS      993.87 seconds



---
Regards,
Linux Bluetooth


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

* Re: [PATCH BlueZ v1] src/shared: Make default length handle EA
  2024-05-01 19:28 [PATCH BlueZ v1] src/shared: Make default length handle EA Luiz Augusto von Dentz
  2024-05-01 21:04 ` [BlueZ,v1] " bluez.test.bot
@ 2024-05-02 14:40 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2024-05-02 14:40 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hello:

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

On Wed,  1 May 2024 15:28:12 -0400 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> By default bt_ad was setting just BT_AD_MAX_DATA_LEN (31) which is not
> enough to handle devices advertising using EA, so this switches the
> default to be BT_EA_MAX_DATA_LEN (251) since EA is much more common
> nowadays and for those case where the it is not supported (e.g. for
> advertisers without EA support) then shall be using bt_ad_set_max_len
> to adjust the maximum length.
> 
> [...]

Here is the summary with links:
  - [BlueZ,v1] src/shared: Make default length handle EA
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=f40c5857d70a

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] 3+ messages in thread

end of thread, other threads:[~2024-05-02 14:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01 19:28 [PATCH BlueZ v1] src/shared: Make default length handle EA Luiz Augusto von Dentz
2024-05-01 21:04 ` [BlueZ,v1] " bluez.test.bot
2024-05-02 14:40 ` [PATCH BlueZ v1] " 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.