diff options
| author | Szymon Janc <szymon.janc@tieto.com> | 2014-03-24 19:44:28 +0100 |
|---|---|---|
| committer | Szymon Janc <szymon.janc@tieto.com> | 2014-03-25 18:35:59 +0100 |
| commit | a4fe38cd6a159713e4a76345cccf2ab5e87ac321 (patch) | |
| tree | a78755c10dc07e8ce6f2758542069247424ab244 | |
| parent | ae3f1b7d532ea369e4cc08422486b32056e0f586 (diff) | |
| download | bluez-a4fe38cd6a159713e4a76345cccf2ab5e87ac321.tar.gz | |
android/handsfree: Send NO CARRIER if call was end due to carrier loss
This was affecting TC_AG_TCA_BV_06_I qualification test case.
| -rw-r--r-- | android/handsfree.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android/handsfree.c b/android/handsfree.c index e1bf563f1..2fef5f9cf 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); |
