nokia: 20s for CSCS=? test command
Nokia N9 via Bluetooth DUN may require up to 20s for the supported charsets query; so update the timeout in the Nokia plugin. https://bugs.freedesktop.org/show_bug.cgi?id=87635 https://bugzilla.gnome.org/show_bug.cgi?id=741813
This commit is contained in:
@@ -183,6 +183,43 @@ load_access_technologies (MMIfaceModem *self,
|
||||
result);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Loading supported charsets (Modem interface) */
|
||||
|
||||
static MMModemCharset
|
||||
load_supported_charsets_finish (MMIfaceModem *self,
|
||||
GAsyncResult *res,
|
||||
GError **error)
|
||||
{
|
||||
const gchar *response;
|
||||
MMModemCharset charsets = MM_MODEM_CHARSET_UNKNOWN;
|
||||
|
||||
response = mm_base_modem_at_command_finish (MM_BASE_MODEM (self), res, error);
|
||||
if (!response)
|
||||
return MM_MODEM_CHARSET_UNKNOWN;
|
||||
|
||||
if (!mm_3gpp_parse_cscs_test_response (response, &charsets)) {
|
||||
g_set_error (error, MM_CORE_ERROR, MM_CORE_ERROR_FAILED,
|
||||
"Failed to parse the supported character sets response");
|
||||
return MM_MODEM_CHARSET_UNKNOWN;
|
||||
}
|
||||
|
||||
return charsets;
|
||||
}
|
||||
|
||||
static void
|
||||
load_supported_charsets (MMIfaceModem *self,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data)
|
||||
{
|
||||
mm_base_modem_at_command (MM_BASE_MODEM (self),
|
||||
"+CSCS=?",
|
||||
20,
|
||||
TRUE,
|
||||
callback,
|
||||
user_data);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Initializing the modem (during first enabling) */
|
||||
|
||||
@@ -367,6 +404,8 @@ iface_modem_init (MMIfaceModem *iface)
|
||||
iface->modem_power_up_finish = NULL;
|
||||
iface->modem_power_down = NULL;
|
||||
iface->modem_power_down_finish = NULL;
|
||||
iface->load_supported_charsets = load_supported_charsets;
|
||||
iface->load_supported_charsets_finish = load_supported_charsets_finish;
|
||||
|
||||
iface->load_access_technologies = load_access_technologies;
|
||||
iface->load_access_technologies_finish = load_access_technologies_finish;
|
||||
|
||||
Reference in New Issue
Block a user