pysim/pySim
Vadim Yanitskiy b271be3dc0 Revert "utils.py: Fix for parsing MNC"
This reverts commit bdf3d3597b, which
broke pySim.utils.dec_mnc_from_plmn().  According to 3GPP TS 31.102,
which points to TS 24.008, the three-digit EHPLMN shall be encoded
as shown below (ASCII-art interpretation):

    0   1   2   3   4   5   6   7
  +---+---+---+---+---+---+---+---+
  |  MCC Digit 2  |  MCC Digit 1  |
  +---+---+---+---+---+---+---+---+
  |  MNC Digit 3  |  MCC Digit 3  |
  +---+---+---+---+---+---+---+---+
  |  MNC Digit 2  |  MNC Digit 1  |
  +---+---+---+---+---+---+---+---+

So the original implementation was correct, and we even had a unit
test for it.  Most likely, the SIM card itself was programmed
incorrectly?

Makes 'testDecMNCfromPLMN_threeDigitMNC' pass again.

Change-Id: If6bf5383988ad442e275efc7c5a159327d104879
2021-03-12 01:00:26 +01:00
..
transport Get rid of Python 2 specific compatibility leftovers 2021-03-11 22:59:21 +01:00
__init__.py cosmetic: missing newlines on last line of 2 files 2017-03-21 13:07:57 +01:00
card_handler.py Remove Python shebang from files where it's not needed 2021-03-01 17:33:46 +01:00
cards.py start using python3 bytearray for our b2h/h2b types 2021-03-03 08:37:50 +01:00
commands.py commands.py: Introduce a real select_file() method 2021-03-02 14:26:32 +01:00
exceptions.py Get rid of Python 2 specific compatibility leftovers 2021-03-11 22:59:21 +01:00
filesystem.py Add a new pySim-shell program 2021-03-03 08:43:38 +01:00
ts_31_102.py Add a new pySim-shell program 2021-03-03 08:43:38 +01:00
ts_31_103.py Add a new pySim-shell program 2021-03-03 08:43:38 +01:00
ts_51_011.py ts_51_011: fix bitmask compositing in EF_xPLMNwAcT.enc_act() 2021-03-07 21:52:13 +01:00
ts_102_221.py Add a new pySim-shell program 2021-03-03 08:43:38 +01:00
utils.py Revert "utils.py: Fix for parsing MNC" 2021-03-12 01:00:26 +01:00