summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2019-11-13 15:25:12 -0600
committerDenis Kenzior <denkenz@gmail.com>2019-11-13 17:01:15 -0600
commit17b6c6c31461c4e2034573f1d3af2ca39edfaac0 (patch)
tree2646d26003fd85641313b5a159c9953428304af5 /src
parent0db662bd6ba4070838bf143df5ee24c949a8c0df (diff)
downloadofono-17b6c6c31461c4e2034573f1d3af2ca39edfaac0.tar.gz
simutil: Fix EF structure bit processing
The intent here was to find the contents of the 3 low order bits according to Table 11-5 in ETSI 102.221. However, the mask ended up only grabbing the contents of the 2 low order bits.
Diffstat (limited to 'src')
-rw-r--r--src/simutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simutil.c b/src/simutil.c
index 22dfaeb6..c9172b23 100644
--- a/src/simutil.c
+++ b/src/simutil.c
@@ -1410,7 +1410,7 @@ gboolean sim_parse_3g_get_response(const unsigned char *data, int len,
if (tlv[1] != 0x21)
return FALSE;
- switch (tlv[0] & 0x3) {
+ switch (tlv[0] & 0x7) {
case 1: /* Transparent */
str = 0x00;
break;