Hi Lucas,
> +static void at_pin_retries_query(struct ofono_sim *sim,
> + ofono_sim_pin_retries_cb_t cb, void *data)
> +{
> + struct sim_data *sd = ofono_sim_get_data(sim);
> +
> + DBG("");
> +
> + if (sd->vendor == OFONO_VENDOR_HUAWEI) {
> + struct cb_data *cbd = cb_data_new(cb, data);
> +
> + if (cbd == NULL) {
> + CALLBACK_WITH_FAILURE(cb, NULL, data);
> +
> + return;
> + }
> +
> + if (g_at_chat_send(sd->chat, "AT^CPIN?", huawei_cpin_prefix,
> + huawei_cpin_cb, cbd, g_free) > 0)
> + return;
> +
> + g_free(cbd);
> +
> + CALLBACK_WITH_FAILURE(cb, NULL, data);
> + }
> +
> + CALLBACK_WITH_SUCCESS(cb, NULL, data);
I believe this will cause the core to segfault when running on
non-huawei devices.
> +}
Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono