Skip to contentSkip to conversation

Advertise telephony service class for handsfree AG role, for Nokia 616 support.

PATCH New Nick Pelly 1 participant 3 messages Sep 23, 2008 Bluetooth drivers

lore
Share & tools
lore

Nick Pelly

author
#0 lore raw

PATCH 1/1 Advertise telephony service class for handsfree AG role, for Nokia 616 support.

The Nokia 616 incorrectly requires the telehony bit to be set to make a handsfree connection.

---
 src/sdpd-service.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
src/sdpd-service.c +7 -0
index 30aad32..f138d22 100644
@@ -121,6 +121,13 @@ static void update_svclass_list(void)
 		case HANDSFREE_SVCLASS_ID:
 			val |= 0x20;	/* Audio */
 			break;
+		/* For Nokia 616 carkit compatability - it incorrectly requires
+		 * the telephony bit set for handsfree usage, despite this not
+		 * being a requirement of the handsfree spec.
+		 */
+		case HANDSFREE_SVCLASS_ID:
+			val |= 0x40;    /* Telephony */
+			break;
 		case CORDLESS_TELEPHONY_SVCLASS_ID:
 		case INTERCOM_SVCLASS_ID:
 		case FAX_SVCLASS_ID:
Signature · 1 line
1.5.5
author
#1 lore raw

PATCH 1/1 Advertise telephony service class for handsfree AG role, for Nokia 616 support.

The Nokia 616 incorrectly requires the telehony bit to be set to make a handsfree connection.

---
 src/sdpd-service.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
src/sdpd-service.c +7 -0
index 30aad32..12c999c 100644
@@ -121,6 +121,13 @@ static void update_svclass_list(void)
 		case HANDSFREE_SVCLASS_ID:
 			val |= 0x20;	/* Audio */
 			break;
+		/* For Nokia 616 carkit compatability - it incorrectly requires
+		 * the telephony bit set on the HFP AG, despite this not
+		 * being a requirement of the handsfree spec.
+		 */
+		case HANDSFREE_AGW_SVCLASS_ID:
+			val |= 0x40;    /* Telephony */
+			break;
 		case CORDLESS_TELEPHONY_SVCLASS_ID:
 		case INTERCOM_SVCLASS_ID:
 		case FAX_SVCLASS_ID:
Signature · 1 line
1.5.5
author
#2 lore raw

The first patch used HANDSFREE_SVCLASS_ID - wrong. Please use the second patch. Sorry about that.

Quoted 28 lines · Nick Pelly

The Nokia 616 incorrectly requires the telehony bit to be set to make a handsfree connection.

---
 src/sdpd-service.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
src/sdpd-service.c +7 -1
index 30aad32..12c999c 100644
@@ -121,6 +121,13 @@ static void update_svclass_list(void)
               case HANDSFREE_SVCLASS_ID:
                       val |= 0x20;    /* Audio */
                       break;
+               /* For Nokia 616 carkit compatability - it incorrectly requires
+                * the telephony bit set on the HFP AG, despite this not
+                * being a requirement of the handsfree spec.
+                */
+               case HANDSFREE_AGW_SVCLASS_ID:
+                       val |= 0x40;    /* Telephony */
+                       break;
               case CORDLESS_TELEPHONY_SVCLASS_ID:
               case INTERCOM_SVCLASS_ID:
               case FAX_SVCLASS_ID:
--

1.5.5