From ff3e9f44ce3cbb183c598a761ee0fc1483d012c4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 2 Oct 2012 13:50:26 +0300 Subject: [PATCH] core: Use proper defines for SPP profile detection --- src/profile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/profile.c b/src/profile.c index cb0e311cc..6347b5c10 100644 --- a/src/profile.c +++ b/src/profile.c @@ -45,6 +45,8 @@ #include "device.h" #include "profile.h" +#define SPP_DEFAULT_CHANNEL 3 + struct pending_connect { struct btd_device *dev; btd_profile_cb cb; @@ -641,11 +643,11 @@ static void ext_get_defaults(struct ext_profile *ext) if (ext->psm || ext->chan) return; - if (strcasecmp(ext->uuid, "spp") == 0) { + if (strcasecmp(ext->uuid, SPP_UUID) == 0) { if (g_strcmp0(ext->role, "client") == 0) return; - ext->chan = 3; + ext->chan = SPP_DEFAULT_CHANNEL; } } -- 2.47.3