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.
This commit is contained in:
Denis Kenzior 2019-11-13 15:25:12 -06:00
parent 0db662bd6b
commit 17b6c6c314
1 changed files with 1 additions and 1 deletions

View File

@ -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;