Diff between 8e318cecb3a2438cdef8278b9c0083cec5688dfe and 031b4d1629bc7d8b45fe46d2716aea8362300065

Changed Files

File Additions Deletions Status
src/profile.c +4 -4 modified

Full Patch

diff --git a/src/profile.c b/src/profile.c
index e41eace..7bd3445 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);
 }