projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a11d38
)
hfp: Fix up disconnect reason handling for +CHUP
author
Denis Kenzior
<denkenz@gmail.com>
Sun, 25 Aug 2013 06:21:23 +0000
(
01:21
-0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Sun, 25 Aug 2013 06:21:23 +0000
(
01:21
-0500)
The affected call types for +CHUP were set to only ACTIVE calls.
Instead the affected set should include INCOMING, DIALING, ALERTING and
ACTIVE calls.
Thanks to Ionut Dediu for the diagnosing and reporting this issue.
drivers/hfpmodem/voicecall.c
patch
|
blob
|
history
diff --git
a/drivers/hfpmodem/voicecall.c
b/drivers/hfpmodem/voicecall.c
index 33dd05eca49f43f20612848a8e1ea8dc2f51e9f6..39db69cdfe0583a648e1d63730850c1ee9646f75 100644
(file)
--- a/
drivers/hfpmodem/voicecall.c
+++ b/
drivers/hfpmodem/voicecall.c
@@
-430,8
+430,13
@@
static void hfp_answer(struct ofono_voicecall *vc,
static void hfp_hangup(struct ofono_voicecall *vc,
ofono_voicecall_cb_t cb, void *data)
{
+ unsigned int affected = (1 << CALL_STATUS_INCOMING) |
+ (1 << CALL_STATUS_DIALING) |
+ (1 << CALL_STATUS_ALERTING) |
+ (1 << CALL_STATUS_ACTIVE);
+
/* Hangup current active call */
- hfp_template("AT+CHUP", vc, generic_cb,
0x1
, cb, data);
+ hfp_template("AT+CHUP", vc, generic_cb,
affected
, cb, data);
}
static void hfp_hold_all_active(struct ofono_voicecall *vc,