Loading system/bta/hf_client/bta_hf_client_at.c +9 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,9 @@ * limitations under the License. * ******************************************************************************/ #define LOG_TAG "bt_hf_client" #include <errno.h> #include <string.h> #include <stdio.h> Loading @@ -23,6 +26,7 @@ #include "osi/include/osi.h" #include "bta_hf_client_api.h" #include "bta_hf_client_int.h" #include "osi/include/log.h" #include "port_api.h" /* Uncomment to enable AT traffic dumping */ Loading Loading @@ -144,9 +148,14 @@ static void bta_hf_client_queue_at(tBTA_HF_CLIENT_AT_CMD cmd, const char *buf, U static void bta_hf_client_at_resp_timer_cback(UNUSED_ATTR void *data) { if (bta_hf_client_cb.scb.at_cb.current_cmd == BTA_HF_CLIENT_AT_CNUM) { LOG_INFO("%s timed out waiting for AT+CNUM response; spoofing OK.", __func__); bta_hf_client_handle_ok(); } else { APPL_TRACE_ERROR("HFPClient: AT response timeout, disconnecting"); bta_hf_client_sm_execute(BTA_HF_CLIENT_API_CLOSE_EVT, NULL); } } static void bta_hf_client_start_at_resp_timer(void) { Loading Loading
system/bta/hf_client/bta_hf_client_at.c +9 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,9 @@ * limitations under the License. * ******************************************************************************/ #define LOG_TAG "bt_hf_client" #include <errno.h> #include <string.h> #include <stdio.h> Loading @@ -23,6 +26,7 @@ #include "osi/include/osi.h" #include "bta_hf_client_api.h" #include "bta_hf_client_int.h" #include "osi/include/log.h" #include "port_api.h" /* Uncomment to enable AT traffic dumping */ Loading Loading @@ -144,9 +148,14 @@ static void bta_hf_client_queue_at(tBTA_HF_CLIENT_AT_CMD cmd, const char *buf, U static void bta_hf_client_at_resp_timer_cback(UNUSED_ATTR void *data) { if (bta_hf_client_cb.scb.at_cb.current_cmd == BTA_HF_CLIENT_AT_CNUM) { LOG_INFO("%s timed out waiting for AT+CNUM response; spoofing OK.", __func__); bta_hf_client_handle_ok(); } else { APPL_TRACE_ERROR("HFPClient: AT response timeout, disconnecting"); bta_hf_client_sm_execute(BTA_HF_CLIENT_API_CLOSE_EVT, NULL); } } static void bta_hf_client_start_at_resp_timer(void) { Loading