summaryrefslogtreecommitdiff
path: root/monitor/rfcomm.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-12-05 14:48:27 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-12-05 16:58:58 +0200
commitaf7a57574215e5862471db4bada0d87e039d3dc4 (patch)
tree4267097c321271e5d36d3bc9aeb1bae71e912bb1 /monitor/rfcomm.c
parenteed45ab621618fca06cbe720d1b9bc616731335d (diff)
downloadbluez-af7a57574215e5862471db4bada0d87e039d3dc4.tar.gz
monitor: Fix RFCOMM parity type mask
Fix RFCOMM RPN parity type bit according to Spec. GSM 07.10 version 6.3.0. (PT1 - PT2 indicates the parity type).
Diffstat (limited to 'monitor/rfcomm.c')
-rw-r--r--monitor/rfcomm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/rfcomm.c b/monitor/rfcomm.c
index fe3afb77b..4ba61c860 100644
--- a/monitor/rfcomm.c
+++ b/monitor/rfcomm.c
@@ -67,7 +67,7 @@ static char *cr_str[] = {
#define GET_RPN_DB(parity) (parity & 0x03)
#define GET_RPN_SB(parity) ((parity & 0x04) >> 2)
#define GET_RPN_PARITY(parity) ((parity & 0x08) >> 3)
-#define GET_RPN_PTYPE(parity) ((parity & 0x03) >> 3)
+#define GET_RPN_PTYPE(parity) ((parity & 0x30) >> 4)
#define GET_RPN_XIN(io) (io & 0x01)
#define GET_RPN_XOUT(io) ((io & 0x02) >> 1)
#define GET_RPN_RTRI(io) ((io & 0x04) >> 2)