Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
denkenz authored and monich committed May 3, 2021
1 parent 9d220ff commit f91df7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ofono/src/simutil.c
Expand Up @@ -1419,7 +1419,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;
Expand Down

0 comments on commit f91df7f

Please sign in to comment.