Skip to contentSkip to conversation

telephony-maemo6: fix not cleaning up network status on exit

PATCH In review Luiz Augusto von Dentz 2 participants 2 messages Feb 16, 2011 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 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(-)
audio/telephony-maemo6.c +3 -0
index bf1e0c4..b0f314c 100644
@@ -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;
 
Signature · 1 line
1.7.1
#1 lore raw

Hi Luiz,

Quoted 5 lines · Luiz Augusto von Dentz

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