From 651794422f331be5865ed8afcab6a56e3abe7521 Mon Sep 17 00:00:00 2001 From: Sylvain Fonteneau Date: Thu, 14 Apr 2011 15:48:51 +0200 Subject: [PATCH] Fixed LLCP SAP value range. Valid LLCP Service Access Point values are 0x00 to 0x3F, not 0x2F. Before this patch, a socket with a local SAP between 0x30 and 0x3F was unable to communicate (operation callbacks were never called). Change-Id: Ic3f9b9f353a01e2682e28575152f171d7ec421e4 --- src/phFriNfc_Llcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phFriNfc_Llcp.h b/src/phFriNfc_Llcp.h index 4d2e71e..73fa486 100644 --- a/src/phFriNfc_Llcp.h +++ b/src/phFriNfc_Llcp.h @@ -119,7 +119,7 @@ extern char phOsalNfc_DbgTraceBuffer[]; #define PHFRINFC_LLCP_SAP_SDP 0x01 /**< Service Discovery Protocol SAP.*/ #define PHFRINFC_LLCP_SAP_SDP_ADVERTISED_FIRST 0x10 /**< First SAP number from SDP-avertised SAP range.*/ #define PHFRINFC_LLCP_SAP_SDP_UNADVERTISED_FIRST 0x20 /**< First SAP number from SDP-unavertised SAP range.*/ -#define PHFRINFC_LLCP_SAP_NUMBER 0x30 /**< Number of possible SAP values (also first invalid value).*/ +#define PHFRINFC_LLCP_SAP_NUMBER 0x40 /**< Number of possible SAP values (also first invalid value).*/ #define PHFRINFC_LLCP_SAP_DEFAULT 0xFF /**< Default number when a socket is created or reset */ /*@}*/