Handle CL opening state in bta_jv_free_rfc_cb
When the local device is openning an rfc channel and is being closed
before it's opened, we should close the channel instead of ignoring.
bug 11299049
Change-Id: I702500d489c8b3d3764e36340106433232a127c0
diff --git a/bta/jv/bta_jv_act.c b/bta/jv/bta_jv_act.c
index b296f1b..ea1c9d7 100644
--- a/bta/jv/bta_jv_act.c
+++ b/bta/jv/bta_jv_act.c
@@ -301,9 +301,10 @@
status = BTA_JV_FAILURE;
return status;
case BTA_JV_ST_CL_OPEN:
+ case BTA_JV_ST_CL_OPENING:
+ APPL_TRACE_DEBUG3("bta_jv_free_sr_rfc_cb: state: %d, scn:%d,"
+ " user_data:%d", p_pcb->state, p_cb->scn, (int)p_pcb->user_data);
p_pcb->state = BTA_JV_ST_CL_CLOSING;
- APPL_TRACE_DEBUG2("bta_jv_free_sr_rfc_cb: state: BTA_JV_ST_CL_OPEN, scn:%d,"
- " user_data:%d", p_cb->scn, (int)p_pcb->user_data);
break;
case BTA_JV_ST_SR_LISTEN:
p_pcb->state = BTA_JV_ST_SR_CLOSING;