#define bta_hf_client_co_cb (*bta_hf_client_co_cb_ptr)
#endif /* HFP_DYNAMIC_MEMORY == FALSE */
-static UINT8 hf_air_mode;
-static UINT8 hf_inout_pkt_size;
+static UINT8 hf_air_mode = BTM_SCO_AIR_MODE_UNKNOWN;
+static UINT8 hf_inout_pkt_size = 0;
/*******************************************************************************
**
#if (HFP_DYNAMIC_MEMORY == TRUE)
error_exit:;
+ hf_air_mode = BTM_SCO_AIR_MODE_UNKNOWN;
+ hf_inout_pkt_size = 0;
+
if (bta_hf_client_co_cb_ptr) {
osi_free(bta_hf_client_co_cb_ptr);
bta_hf_client_co_cb_ptr = NULL;
} else {
// Nothing to do
}
+
+ hf_air_mode = BTM_SCO_AIR_MODE_UNKNOWN;
+ hf_inout_pkt_size = 0;
}
/*******************************************************************************
#define BTM_SCO_AIR_MODE_A_LAW 1
#define BTM_SCO_AIR_MODE_CVSD 2
#define BTM_SCO_AIR_MODE_TRANSPNT 3
+#define BTM_SCO_AIR_MODE_UNKNOWN 0xFF
typedef UINT8 tBTM_SCO_AIR_MODE_TYPE;
/*******************