[PATCH 1/2] Fix remove all atoms in ofono_modem_set_powered

Zhang, Zhenhua zhenhua.zhang at intel.com
Tue Dec 8 05:52:38 PST 2009


Hi,

Zhang, Zhenhua wrote:
> We should remove all atoms when we disable the modem. In
> function set_powered, we remove all atoms if modem is powered down by
> dbus call. ---
> src/modem.c |    3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
> 

Let me explain more about this fix. In atmodem world, we use dbus call to 
power on/off modem and then it calls set_powered() to remove all atoms.

However, in hfpmodem, the plugin may receive signal from BlueZ that remote
has closed the service level connection with us. So we must power off the modem
through ofono_modem_set_powered(modem, FALSE).

I also tried phonesim and don't find problem. Let me know if any questions or
issues. Thanks.

Regards,
Zhenhua



More information about the ofono mailing list