Bluetooth: HFP HF: Fix getting inaccessible internal

The profile (application layer) shouldn't use direct (de)references
to internal stack context members.

Change-Id: I772134a5016de6706c30f058545b3c64c0894202
Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
This commit is contained in:
Arkadiusz Lichwa 2016-09-23 17:22:58 +02:00 committed by Johan Hedberg
commit 97b32a0468

View file

@ -68,7 +68,7 @@ static int bt_hfp_hf_accept(struct bt_conn *conn, struct bt_rfcomm_dlc **dlc)
.recv = hfp_hf_recv, .recv = hfp_hf_recv,
}; };
BT_DBG("conn %p handle %u", conn, conn->handle); BT_DBG("conn %p", conn);
for (i = 0; i < ARRAY_SIZE(bt_hfp_hf_pool); i++) { for (i = 0; i < ARRAY_SIZE(bt_hfp_hf_pool); i++) {
struct bt_hfp_hf *hf = &bt_hfp_hf_pool[i]; struct bt_hfp_hf *hf = &bt_hfp_hf_pool[i];