All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] BNEP: Fix the BNEP Unknown Control Message in PTS testing:
@ 2025-01-10  6:54 Shuai Zhang
  2025-01-10  8:08 ` [v1] " bluez.test.bot
  2025-01-13 20:50 ` [PATCH v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Shuai Zhang @ 2025-01-10  6:54 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: quic_shuaz, quic_chejiang, quic_jiaymao, quic_zijuhu,
	quic_mohamull

This change is required for passing below PTS testcase:
1. BNEP/CTRL/BV-01-C

Fix the flag judgment issue, it should check type
instead of ctrl.

Signed-off-by: Shuai Zhang <quic_shuaz@quicinc.com>
---
 profiles/network/server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/network/server.c b/profiles/network/server.c
index 36a1136f6..ad2cd55bd 100644
--- a/profiles/network/server.c
+++ b/profiles/network/server.c
@@ -336,7 +336,7 @@ static gboolean bnep_setup(GIOChannel *chan,
 		 * This packet reply to any control message received,
 		 * which contains an unknown BNEP control type value.
 		 */
-		if (req->ctrl == BNEP_CONTROL)
+		if (req->type == BNEP_CONTROL)
 			bnep_send_unkown_rsp(sk, req->ctrl);
 
 		error("To few setup connection request data received");
-- 
2.25.1


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

end of thread, other threads:[~2025-01-13 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-10  6:54 [PATCH v1] BNEP: Fix the BNEP Unknown Control Message in PTS testing: Shuai Zhang
2025-01-10  8:08 ` [v1] " bluez.test.bot
2025-01-13 20:50 ` [PATCH 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.