diff options
author | Ben Chan <benchan@chromium.org> | 2013-09-26 11:07:16 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-09-26 20:23:51 +0200 |
commit | b5ef861d12c7533d89a18454b03e8e3301164bea (patch) | |
tree | d49cbf5d285f623de42879a271c0b388dba4a8b1 /src/mm-modem-helpers.h | |
parent | b786ac0debc7aa5e9a6b0f00bd61e15d9daea049 (diff) |
modem-helpers,sim: auto-detect if ICCID response is character swapped
This patch modifies mm_3gpp_parse_iccid() to auto-detect if an ICCID
response is character swapped or not by comparsing the major industry
identifier part of the ICCID response to the known value (89) for
telecommunication purposes. This addresses the issue where the same AT
command (e.g. AT^ICCID used by the huawei plugin) does not report ICCID
in a consistent format.
Diffstat (limited to 'src/mm-modem-helpers.h')
-rw-r--r-- | src/mm-modem-helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index 355453a5..0ec59aff 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -204,7 +204,7 @@ gboolean mm_3gpp_parse_operator_id (const gchar *operator_id, const gchar *mm_3gpp_get_pdp_type_from_ip_family (MMBearerIpFamily family); MMBearerIpFamily mm_3gpp_get_ip_family_from_pdp_type (const gchar *pdp_type); -char *mm_3gpp_parse_iccid (const char *raw_iccid, gboolean swap, GError **error); +char *mm_3gpp_parse_iccid (const char *raw_iccid, GError **error); /*****************************************************************************/ /* CDMA specific helpers and utilities */ |