From 031b4d1629bc7d8b45fe46d2716aea8362300065 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 15 Nov 2012 15:24:22 +0200 Subject: [PATCH] core: Use "real" channel from ext_io for SDP records --- src/profile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/profile.c b/src/profile.c index e41eace6c..7bd3445c3 100644 --- a/src/profile.c +++ b/src/profile.c @@ -1261,28 +1261,28 @@ static int ext_disconnect_dev(struct btd_device *dev, static char *get_hfp_hf_record(struct ext_profile *ext, struct ext_io *l2cap, struct ext_io *rfcomm) { - return g_strdup_printf(HFP_HF_RECORD, ext->local_chan, ext->version, + return g_strdup_printf(HFP_HF_RECORD, rfcomm->chan, ext->version, ext->name, ext->features); } static char *get_hfp_ag_record(struct ext_profile *ext, struct ext_io *l2cap, struct ext_io *rfcomm) { - return g_strdup_printf(HFP_AG_RECORD, ext->local_chan, ext->version, + return g_strdup_printf(HFP_AG_RECORD, rfcomm->chan, ext->version, ext->name, ext->features); } static char *get_spp_record(struct ext_profile *ext, struct ext_io *l2cap, struct ext_io *rfcomm) { - return g_strdup_printf(SPP_RECORD, ext->local_chan, ext->version, + return g_strdup_printf(SPP_RECORD, rfcomm->chan, ext->version, ext->name); } static char *get_dun_record(struct ext_profile *ext, struct ext_io *l2cap, struct ext_io *rfcomm) { - return g_strdup_printf(DUN_RECORD, ext->local_chan, ext->version, + return g_strdup_printf(DUN_RECORD, rfcomm->chan, ext->version, ext->name); } -- 2.11.0