Skip to content

Commit 13aee77

Browse files
committed
Bluetooth: Classic: HFP: HF: Report call struct pointer when CLCC response.
bug: v/78002 Report call struct pointer when CLCC response to allow the upper layer to match the call in the response with the pointer provided in the callback. Signed-off-by: YuhengLi <[email protected]>
1 parent 9931065 commit 13aee77

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/zephyr/bluetooth/classic/hfp_hf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ struct bt_hfp_hf_current_call {
101101
const char *number;
102102
/** Phone number type format identifier */
103103
uint8_t type;
104+
/** HFP HF call object */
105+
struct bt_hfp_hf_call *call;
104106
};
105107

106108
/** @brief HFP profile application callback */

subsys/bluetooth/host/classic/hfp_hf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ static int clcc_handle(struct at_client *hf_at)
849849
current_call.multiparty = mpty > 0 ? true : false;
850850
current_call.number = number;
851851
current_call.type = (uint8_t)type;
852+
current_call.call = call;
852853

853854
bt_hf->query_call(hf, &current_call);
854855
}

0 commit comments

Comments
 (0)