diff options
author | Dan Williams <dcbw@redhat.com> | 2010-02-09 23:44:23 -0800 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-02-09 23:44:23 -0800 |
commit | d8ea5ea003f6e06520ec1254d89ec5fec5438d18 (patch) | |
tree | 76c714f6a011dbc69a5b1e89263c2c0c456b8c1c /src/mm-modem-base.c | |
parent | 95dd4b5be1ebb0408be6e282eb20e2c45df1f253 (diff) |
gsm: fix initial PIN checking for devices that echo by default
If the modem echoed commands by default (since we may not have
initialized the modem yet), the echoed command would confuse
the PIN check reply parser.
Diffstat (limited to 'src/mm-modem-base.c')
-rw-r--r-- | src/mm-modem-base.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mm-modem-base.c b/src/mm-modem-base.c index 6e9ee75f..43ec6f84 100644 --- a/src/mm-modem-base.c +++ b/src/mm-modem-base.c @@ -170,7 +170,17 @@ mm_modem_base_get_valid (MMModemBase *self) return MM_MODEM_BASE_GET_PRIVATE (self)->valid; } -void mm_modem_base_set_unlock_required (MMModemBase *self, const char *unlock_required) +const char * +mm_modem_base_get_unlock_required (MMModemBase *self) +{ + g_return_val_if_fail (self != NULL, NULL); + g_return_val_if_fail (MM_IS_MODEM_BASE (self), NULL); + + return MM_MODEM_BASE_GET_PRIVATE (self)->unlock_required; +} + +void +mm_modem_base_set_unlock_required (MMModemBase *self, const char *unlock_required) { MMModemBasePrivate *priv; const char *dbus_path; |