linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] obex: Add Newmissedcalls tag in PBAP GET response
@ 2024-11-11 12:55 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:55 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: quic_mohamull, quic_hbandi, quic_anubhavg

This fix is required for passing below PTS testcases:

1. PBAP/PSE/PBD/BV-05-C
2. PBAP/PSE/PBD/BV-17-C
3. PBAP/PSE/PBB/BV-11-C

Even if the new missed calls value is zero, send it in GET response.
As per the PBAP spec, it is mandatory to include Newmissedcalls
tag in response incase of object name is 'mch.vcf' or 'cch.vcf'.
It will be better to include it in all GET response.

---
 obexd/plugins/pbap.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index 64641c798..74976890d 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
@@ -184,12 +184,11 @@ static void phonebook_size_result(const char *buffer, size_t bufsize,
 
 	if (missed > 0)	{
 		DBG("missed %d", missed);
+	}
 
-		pbap->obj->apparam = g_obex_apparam_set_uint16(
-							pbap->obj->apparam,
+	pbap->obj->apparam = g_obex_apparam_set_uint16(pbap->obj->apparam,
 							NEWMISSEDCALLS_TAG,
 							missed);
-	}
 
 	obex_object_set_io_flags(pbap->obj, G_IO_IN, 0);
 }
@@ -223,12 +222,11 @@ static void query_result(const char *buffer, size_t bufsize, int vcards,
 		DBG("missed %d", missed);
 
 		pbap->obj->firstpacket = TRUE;
+	}
 
-		pbap->obj->apparam = g_obex_apparam_set_uint16(
-							pbap->obj->apparam,
+	pbap->obj->apparam = g_obex_apparam_set_uint16(pbap->obj->apparam,
 							NEWMISSEDCALLS_TAG,
 							missed);
-	}
 
 	obex_object_set_io_flags(pbap->obj, G_IO_IN, 0);
 }
-- 
2.34.1


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

* RE: [v1] obex: Add Newmissedcalls tag in PBAP GET response
  2024-11-11 12:55 [PATCH v1] obex: Add Newmissedcalls tag in PBAP GET response 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=908402

---Test result---

Test Summary:
CheckPatch                    PASS      0.27 seconds
GitLint                       PASS      0.20 seconds
BuildEll                      PASS      25.99 seconds
BluezMake                     PASS      1841.69 seconds
MakeCheck                     PASS      13.19 seconds
MakeDistcheck                 PASS      189.67 seconds
CheckValgrind                 PASS      265.82 seconds
CheckSmatch                   PASS      374.04 seconds
bluezmakeextell               PASS      126.17 seconds
IncrementalBuild              PASS      1611.11 seconds
ScanBuild                     PASS      1107.04 seconds



---
Regards,
Linux Bluetooth


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

* Re: [PATCH v1] obex: Add Newmissedcalls tag in PBAP GET response
  2024-11-11 12:55 [PATCH v1] obex: Add Newmissedcalls tag in PBAP GET response 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:25:18 +0530 you wrote:
> This fix is required for passing below PTS testcases:
> 
> 1. PBAP/PSE/PBD/BV-05-C
> 2. PBAP/PSE/PBD/BV-17-C
> 3. PBAP/PSE/PBB/BV-11-C
> 
> Even if the new missed calls value is zero, send it in GET response.
> As per the PBAP spec, it is mandatory to include Newmissedcalls
> tag in response incase of object name is 'mch.vcf' or 'cch.vcf'.
> It will be better to include it in all GET response.
> 
> [...]

Here is the summary with links:
  - [v1] obex: Add Newmissedcalls tag in PBAP GET response
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=639fb80032cd

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:55 [PATCH v1] obex: Add Newmissedcalls tag in PBAP GET response 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).