summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSylvain Fonteneau <sylvain.fonteneau@trusted-logic.com>2011-04-14 15:48:51 +0200
committerJeff Hamilton <jham@android.com>2011-05-16 15:48:43 -0500
commit651794422f331be5865ed8afcab6a56e3abe7521 (patch)
tree623fe9e85b919ec5842ba48751bdbca1b5d601ae /src
parent92c7e0144b84a27b4573043fef718a8ba458d062 (diff)
downloadexternal_libnfc-nxp-651794422f331be5865ed8afcab6a56e3abe7521.zip
external_libnfc-nxp-651794422f331be5865ed8afcab6a56e3abe7521.tar.gz
external_libnfc-nxp-651794422f331be5865ed8afcab6a56e3abe7521.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/phFriNfc_Llcp.h2
1 files changed, 1 insertions, 1 deletions
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 */
/*@}*/