summaryrefslogtreecommitdiffstats
path: root/include/bt_target.h
diff options
context:
space:
mode:
authorKausik Sinnaswamy <kausik@broadcom.com>2012-09-21 15:58:40 +0530
committerMatthew Xie <mattx@google.com>2012-09-21 15:02:36 -0700
commit0fdeb593e27922d90da480ef8db95537f9c36c6e (patch)
treec1f685fd8c43709973f747bc82e7310c6d84cfed /include/bt_target.h
parent751c3ccf7c79a717c4f812c613f8911c1b7dee0b (diff)
downloadexternal_bluetooth_bluedroid-0fdeb593e27922d90da480ef8db95537f9c36c6e.zip
external_bluetooth_bluedroid-0fdeb593e27922d90da480ef8db95537f9c36c6e.tar.gz
external_bluetooth_bluedroid-0fdeb593e27922d90da480ef8db95537f9c36c6e.tar.bz2
Move default COD macro BTA_DM_COD to bt_target.h
This can be over-ridden on the various platforms via the respective bdroid_buildcfg.h. Default value chosen is for MAJOR_PHONE and MINOR_SMARTPHONE. bug 7176584 Change-Id: Ie553e082273b63e871aad5cda9816b16345fd9e2
Diffstat (limited to 'include/bt_target.h')
-rw-r--r--include/bt_target.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/bt_target.h b/include/bt_target.h
index 9b48e17..68c8417 100644
--- a/include/bt_target.h
+++ b/include/bt_target.h
@@ -1031,9 +1031,16 @@ and USER_HW_DISABLE_API macros */
#define BTM_AFTER_RESET_TIMEOUT 0
#endif
-/* The default class of device. */
-#ifndef BTM_INIT_CLASS_OF_DEVICE
-#define BTM_INIT_CLASS_OF_DEVICE "\x00\x1F\x00"
+/* Default class of device
+* {SERVICE_CLASS, MAJOR_CLASS, MINOR_CLASS}
+*
+* SERVICE_CLASS:0x5A (Bit17 -Networking,Bit19 - Capturing,Bit20 -Object Transfer,Bit22 -Telephony)
+* MAJOR_CLASS:0x02 - PHONE
+* MINOR_CLASS:0x0C - SMART_PHONE
+*
+*/
+#ifndef BTA_DM_COD
+#define BTA_DM_COD {0x5A, 0x02, 0x0C}
#endif
/* The number of SCO links. */