[PATCH 3/4] Reset the bit of local_release by call id

Zhenhua Zhang zhenhua.zhang at intel.com
Fri Nov 6 23:22:28 PST 2009


Reset the bit of local_release instead of reset the whole. Because
in multi call, different bit is reset in differnet call.
---
 drivers/hfpmodem/voicecall.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index e961d9a..2fed2f4 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -146,7 +146,7 @@ static void release_call(struct ofono_voicecall *vc,
struct ofono_call *call)
 	ofono_voicecall_disconnected(vc, call->id, reason, NULL);
 	at_util_release_id(&vd->id_list, call->id);
 
-	vd->local_release = 0;
+	vd->local_release &= ~(1 << call->id);
 
 	vd->calls = g_slist_remove(vd->calls, call);
 
-- 
1.6.2.5





More information about the ofono mailing list