All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Driver specific dial string validation
@ 2015-08-06 16:56 Kuba Pawlak
  2015-08-06 16:56 ` Kuba Pawlak
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Kuba Pawlak @ 2015-08-06 16:56 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1723 bytes --]

Dial() method is generic for all modems but hfpmodem may not support some dial
strings. HFP 1.6 SPEC for ATD says: "Only voice calls are covered in this
specification."
Problem is with dialling USSD codes. Request is accepted and a call object
is state dialling is created. USSD code is completed, result displays on
the phone, but there are no events that would allow oFono to remove this fake 
call object. 
We may end up in such situation (Samsung S3 4.3):
ofonod[292]: > ATD*132#;\r
ofonod[292]: < \r\nOK\r\n
ofonod[292]: src/voicecall.c:dial_handle_result() Registering new call: 1
ofonod[292]: > AT+CHUP\r
ofonod[292]: < \r\nOK\r\n
ofonod[292]: > AT+CHUP\r
ofonod[292]: < \r\nOK\r\n
ofonod[292]: > AT+CHUP\r
ofonod[292]: < \r\nOK\r\n

This call cannot be ended and no more calls can be done as there can only be
one call in state 'Dialling'.
Proposed workaround is to have a validation string also in the driver, where
a USSD request can be stopped.

Kuba Pawlak (3):
  voicecall.h: add dial string validation to driver
  voicecall.c: call driver's dial string validation
  hfp: define driver specific dial string validation

 drivers/hfpmodem/voicecall.c | 37 ++++++++++++++++++++++++++++++++++++-
 include/voicecall.h          |  6 ++++++
 src/voicecall.c              |  7 ++++++-
 3 files changed, 48 insertions(+), 2 deletions(-)

-- 
1.7.11.7

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul
Chairperson of the Supervisory Board: Tiffany Doon Silva
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-07 14:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-06 16:56 [PATCH 0/3] Driver specific dial string validation Kuba Pawlak
2015-08-06 16:56 ` Kuba Pawlak
2015-08-06 22:40   ` Denis Kenzior
2015-08-07 14:27     ` Pawlak, KubaX T
2015-08-06 16:56 ` [PATCH 1/3] voicecall.h: add dial string validation to driver Kuba Pawlak
2015-08-06 16:57 ` [PATCH 2/3] voicecall.c: call driver's dial string validation Kuba Pawlak
2015-08-06 16:57 ` [PATCH 3/3] hfp: define driver specific " Kuba Pawlak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.