mirror of git://git.sysmocom.de/ofono
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:
parent
0db662bd6b
commit
17b6c6c314
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue