linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] obex: Check for supported features bit value for legacy server
@ 2024-11-11 12:31 Amisha Jain
  2024-11-11 14:35 ` [v1] " bluez.test.bot
  2024-11-11 15:20 ` [PATCH v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Amisha Jain @ 2024-11-11 12:31 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: quic_mohamull, quic_hbandi, quic_anubhavg

This fix is required for below PTS testcase:

1. PBAP/PCE/SSM/BV-10-C
Description - Verify that the PCE does not share its
PbapSupportedFeatures bits with a legacy server.

Incase of legacy server, check for 'supported features bit'
uint_32_t value instead of directly checking the pointer
holding the attribute.
As pointer 'data' won't be null as PbapSupportedFeatures
attribute is present in SDP record but it's value is zero.

---
 obexd/client/pbap.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
index bc3fdcf9f..09d3fd425 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
@@ -1219,6 +1219,7 @@ static void *pbap_supported_features(struct obc_session *session)
 {
 	const void *data;
 	uint16_t version;
+	uint32_t features;
 
 	/* Version */
 	data = obc_session_get_attribute(session, SDP_ATTR_PFILE_DESC_LIST);
@@ -1233,7 +1234,9 @@ static void *pbap_supported_features(struct obc_session *session)
 	/* Supported Feature Bits */
 	data = obc_session_get_attribute(session,
 					SDP_ATTR_PBAP_SUPPORTED_FEATURES);
-	if (!data)
+
+	features = *(uint32_t *) data;
+	if (!features)
 		return NULL;
 
 	return g_obex_apparam_set_uint32(NULL, SUPPORTED_FEATURES_TAG,
-- 
2.34.1


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

* RE: [v1] obex: Check for supported features bit value for legacy server
  2024-11-11 12:31 [PATCH v1] obex: Check for supported features bit value for legacy server Amisha Jain
@ 2024-11-11 14:35 ` bluez.test.bot
  2024-11-11 15:20 ` [PATCH v1] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-11-11 14:35 UTC (permalink / raw)
  To: linux-bluetooth, quic_amisjain

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

---Test result---

Test Summary:
CheckPatch                    PASS      0.44 seconds
GitLint                       PASS      0.41 seconds
BuildEll                      PASS      24.74 seconds
BluezMake                     PASS      1800.88 seconds
MakeCheck                     PASS      13.58 seconds
MakeDistcheck                 PASS      188.59 seconds
CheckValgrind                 PASS      262.96 seconds
CheckSmatch                   PASS      371.16 seconds
bluezmakeextell               PASS      125.55 seconds
IncrementalBuild              PASS      1695.02 seconds
ScanBuild                     PASS      1078.32 seconds



---
Regards,
Linux Bluetooth


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

* Re: [PATCH v1] obex: Check for supported features bit value for legacy server
  2024-11-11 12:31 [PATCH v1] obex: Check for supported features bit value for legacy server Amisha Jain
  2024-11-11 14:35 ` [v1] " bluez.test.bot
@ 2024-11-11 15:20 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2024-11-11 15:20 UTC (permalink / raw)
  To: Amisha Jain; +Cc: linux-bluetooth, quic_mohamull, quic_hbandi, quic_anubhavg

Hello:

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

On Mon, 11 Nov 2024 18:01:25 +0530 you wrote:
> This fix is required for below PTS testcase:
> 
> 1. PBAP/PCE/SSM/BV-10-C
> Description - Verify that the PCE does not share its
> PbapSupportedFeatures bits with a legacy server.
> 
> Incase of legacy server, check for 'supported features bit'
> uint_32_t value instead of directly checking the pointer
> holding the attribute.
> As pointer 'data' won't be null as PbapSupportedFeatures
> attribute is present in SDP record but it's value is zero.
> 
> [...]

Here is the summary with links:
  - [v1] obex: Check for supported features bit value for legacy server
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=486aeafd87bc

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-11-11 15:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11 12:31 [PATCH v1] obex: Check for supported features bit value for legacy server Amisha Jain
2024-11-11 14:35 ` [v1] " bluez.test.bot
2024-11-11 15:20 ` [PATCH v1] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).