diff mbox series

[v1] BNEP: Fix the BNEP Unknown Control Message in PTS testing:

Message ID 20250110065444.3192525-1-quic_shuaz@quicinc.com
State New
Headers show
Series [v1] BNEP: Fix the BNEP Unknown Control Message in PTS testing: | expand

Commit Message

Shuai Zhang Jan. 10, 2025, 6:54 a.m. UTC
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(-)

Comments

patchwork-bot+bluetooth@kernel.org Jan. 13, 2025, 8:50 p.m. UTC | #1
Hello:

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

On Fri, 10 Jan 2025 14:54:44 +0800 you wrote:
> 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>
> 
> [...]

Here is the summary with links:
  - [v1] BNEP: Fix the BNEP Unknown Control Message in PTS testing:
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=a30763866b7a

You are awesome, thank you!
diff mbox series

Patch

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");