2011-02-16 14:38:23

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: [PATCH] telephony-maemo6: fix not cleaning up network status on exit

From: Luiz Augusto von Dentz <[email protected]>

This may cause indicators to not be reported correctly when adapter is
reset.
---
audio/telephony-maemo6.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/audio/telephony-maemo6.c b/audio/telephony-maemo6.c
index bf1e0c4..b0f314c 100644
--- a/audio/telephony-maemo6.c
+++ b/audio/telephony-maemo6.c
@@ -2025,6 +2025,9 @@ void telephony_exit(void)
g_free(net.operator_name);
net.operator_name = NULL;

+ net.status = NETWORK_REG_STATUS_UNKOWN;
+ net.signal_bars = 0;
+
g_free(last_dialed_number);
last_dialed_number = NULL;

--
1.7.1



2011-02-16 19:04:50

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] telephony-maemo6: fix not cleaning up network status on exit

Hi Luiz,

On Wed, Feb 16, 2011, Luiz Augusto von Dentz wrote:
> This may cause indicators to not be reported correctly when adapter is
> reset.
> ---
> audio/telephony-maemo6.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)

This patch has also been pushed upstream, thanks.

Johan