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