Linux bluetooth development
 help / color / mirror / Atom feed
* [RFC] android/handsfree: Send NO CARRIER if call was end due to carrier loss
@ 2014-03-24 18:48 Szymon Janc
  2014-03-25 23:16 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Szymon Janc @ 2014-03-24 18:48 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

This was affecting TC_AG_TCA_BV_06_I qualification test case.
---

I have an impression that this should be handled by telephony stack,
not BT stack hence sending this as RFC.


 android/handsfree.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/android/handsfree.c b/android/handsfree.c
index e1bf563..9b98591 100644
--- a/android/handsfree.c
+++ b/android/handsfree.c
@@ -2093,6 +2093,13 @@ static void phone_state_idle(int num_active, int num_held)
 					num_held ? (num_active ? 1 : 2) : 0);
 		update_indicator(IND_CALL, !!(num_active + num_held));
 		update_indicator(IND_CALLSETUP, 0);
+
+		/* If call was terminated due to carrier lost send NO CARRIER */
+		if (num_active == 0 && num_held == 0 &&
+				device.inds[IND_SERVICE].val == 0 &&
+				(device.num_active > 0 || device.num_held > 0))
+				hfp_gw_send_info(device.gw, "NO CARRIER");
+
 		break;
 	default:
 		DBG("unhandled state %u", device.setup_state);
-- 
1.8.5.3


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

* Re: [RFC] android/handsfree: Send NO CARRIER if call was end due to carrier loss
  2014-03-24 18:48 [RFC] android/handsfree: Send NO CARRIER if call was end due to carrier loss Szymon Janc
@ 2014-03-25 23:16 ` Szymon Janc
  0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2014-03-25 23:16 UTC (permalink / raw)
  To: linux-bluetooth

On Monday 24 of March 2014 19:48:32 Szymon Janc wrote:
> This was affecting TC_AG_TCA_BV_06_I qualification test case.
> ---
> 
> I have an impression that this should be handled by telephony stack,
> not BT stack hence sending this as RFC.
> 
> 
>  android/handsfree.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/android/handsfree.c b/android/handsfree.c
> index e1bf563..9b98591 100644
> --- a/android/handsfree.c
> +++ b/android/handsfree.c
> @@ -2093,6 +2093,13 @@ static void phone_state_idle(int num_active, int
> num_held) num_held ? (num_active ? 1 : 2) : 0);
>  		update_indicator(IND_CALL, !!(num_active + num_held));
>  		update_indicator(IND_CALLSETUP, 0);
> +
> +		/* If call was terminated due to carrier lost send NO CARRIER */
> +		if (num_active == 0 && num_held == 0 &&
> +				device.inds[IND_SERVICE].val == 0 &&
> +				(device.num_active > 0 || device.num_held > 0))
> +				hfp_gw_send_info(device.gw, "NO CARRIER");
> +
>  		break;
>  	default:
>  		DBG("unhandled state %u", device.setup_state);

Since PICS were updated to include affected test, this is now upstream.

-- 
BR
Szymon Janc

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

end of thread, other threads:[~2014-03-25 23:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 18:48 [RFC] android/handsfree: Send NO CARRIER if call was end due to carrier loss Szymon Janc
2014-03-25 23:16 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox