* [PATCH 2/2] fake a sim-inserted status
@ 2010-12-10 18:28 F. Gau
2010-12-20 21:31 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: F. Gau @ 2010-12-10 18:28 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]
From: M. Dietrich <mdt@emdete.de>
while the sim detection does not work this patch at least allows to use
those modems. until someone has the time to work out a correct solution
this is a usefull workaround.
---
plugins/huawei.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/plugins/huawei.c b/plugins/huawei.c
index 25dfaca..df506d3 100644
--- a/plugins/huawei.c
+++ b/plugins/huawei.c
@@ -586,6 +586,7 @@ static void huawei_pre_sim(struct ofono_modem *modem)
ofono_devinfo_create(modem, 0, "atmodem", data->pcui);
data->sim = ofono_sim_create(modem, OFONO_VENDOR_QUALCOMM_MSM,
"atmodem", data->pcui);
+ ofono_sim_inserted_notify(data->sim, TRUE);
data->sim_poll_count = 0;
query_sim_state(modem);
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] fake a sim-inserted status
2010-12-10 18:28 [PATCH 2/2] fake a sim-inserted status F. Gau
@ 2010-12-20 21:31 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2010-12-20 21:31 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]
Hi,
On 12/10/2010 12:28 PM, F. Gau wrote:
> From: M. Dietrich <mdt@emdete.de>
>
> while the sim detection does not work this patch at least allows to use
> those modems. until someone has the time to work out a correct solution
> this is a usefull workaround.
> ---
> plugins/huawei.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/plugins/huawei.c b/plugins/huawei.c
> index 25dfaca..df506d3 100644
> --- a/plugins/huawei.c
> +++ b/plugins/huawei.c
> @@ -586,6 +586,7 @@ static void huawei_pre_sim(struct ofono_modem *modem)
> ofono_devinfo_create(modem, 0, "atmodem", data->pcui);
> data->sim = ofono_sim_create(modem, OFONO_VENDOR_QUALCOMM_MSM,
> "atmodem", data->pcui);
> + ofono_sim_inserted_notify(data->sim, TRUE);
>
> data->sim_poll_count = 0;
> query_sim_state(modem);
I don't want to completely bypass the sim inserted logic (which seems to
work on other Huawei models) for the sake of EM770.
So I really prefer that we do this a bit smarter. Even simple model to
behavior matching would be acceptable...
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-20 21:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-10 18:28 [PATCH 2/2] fake a sim-inserted status F. Gau
2010-12-20 21:31 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.