From 51072c0618b255707ae21b13a0da2e549f842819 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 3 Mar 2014 00:50:46 +0100 Subject: [PATCH] android/socket: Reserve channel for HSP AG --- android/socket.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/android/socket.c b/android/socket.c index 7bc77edb6..e9c76757b 100644 --- a/android/socket.c +++ b/android/socket.c @@ -48,7 +48,8 @@ #define RFCOMM_CHANNEL_MAX 30 #define OPP_DEFAULT_CHANNEL 9 -#define HFAG_DEFAULT_CHANNEL 13 +#define HSP_AG_DEFAULT_CHANNEL 12 +#define HFP_AG_DEFAULT_CHANNEL 13 #define PBAP_DEFAULT_CHANNEL 15 #define MAP_MAS_DEFAULT_CHANNEL 16 @@ -375,11 +376,20 @@ static const struct profile_info { sdp_record_t * (*create_record)(uint8_t chan, const char *svc_name); } profiles[] = { { + .uuid = { + 0x00, 0x00, 0x11, 0x08, 0x00, 0x00, 0x10, 0x00, + 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB + }, + .channel = HSP_AG_DEFAULT_CHANNEL, + .svc_hint = 0, + .sec_level = BT_IO_SEC_MEDIUM, + .create_record = NULL + }, { .uuid = { 0x00, 0x00, 0x11, 0x1F, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB }, - .channel = HFAG_DEFAULT_CHANNEL, + .channel = HFP_AG_DEFAULT_CHANNEL, .svc_hint = 0, .sec_level = BT_IO_SEC_MEDIUM, .create_record = NULL -- 2.47.3