Hi Guillaume,
On 15.12.2011 10:50, Guillaume Zajac wrote:
> ---
> plugins/ofono.c | 100
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
> 1 files changed, 99 insertions(+), 1 deletions(-)
>
> diff --git a/plugins/ofono.c b/plugins/ofono.c
> index 7d2eaf8..35bc3b7 100644
> --- a/plugins/ofono.c
> +++ b/plugins/ofono.c
> @@ -1609,6 +1609,62 @@ static gboolean cm_changed(DBusConnection *connection,
> DBusMessage *message,
> return TRUE;
> }
>
> +static void cdma_cm_update_powered(struct modem_data *modem,
> + DBusMessageIter *value)
> +{
> + dbus_message_iter_get_basic(value, &modem->cdma_cm_powered);
> +
> + DBG("%s CDMA cm Powered %d", modem->path, modem->cdma_cm_powered);
> +
> + if (modem->network != NULL) {
> + if (modem->cdma_cm_powered == TRUE)
> + set_connected(modem);
> + else
> + set_disconnected(modem);
> + }
> +}
Could you change this to
if (modem->network == NULL)
return;
here the rest
?
> +static void cdma_cm_update_settings(struct modem_data *modem,
> + DBusMessageIter *value)
> +{
> + if (modem->context != NULL) {
> + DBG("%s Settings", modem->path);
> +
> + extract_ipv4_settings(value, modem->context);
> + }
> +}
Same here
Thanks,
Daniel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman