summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorZach Johnson <zachoverflow@google.com>2014-10-20 15:40:01 -0700
committerAndre Eisenbach <eisenbach@google.com>2015-03-16 16:51:36 -0700
commit8e90de46284238e551ad825fb00bda2bbc90ea1d (patch)
tree54420ac881165d51b4168add8a0e1378ea8bca19 /include
parent9df3c8cb90caea19b96a84aedec6f275b7b53b70 (diff)
downloadandroid_system_bt-8e90de46284238e551ad825fb00bda2bbc90ea1d.tar.gz
android_system_bt-8e90de46284238e551ad825fb00bda2bbc90ea1d.tar.bz2
android_system_bt-8e90de46284238e551ad825fb00bda2bbc90ea1d.zip
Remove some remaining references to OBX
Android implements the Object Push Profile in java against RFCOMM sockets with its own implementation of OBX there. OBX in Bluedroid isn't compiled, and is missing header files required to compile it anyway. Removed a number of OBX related headers and updated a few references where they were used out of place. Change-Id: Ifaecfb6f85b1dca9055932886af484b6dc107fc1
Diffstat (limited to 'include')
-rw-r--r--include/bt_target.h102
-rw-r--r--include/gki_target.h10
2 files changed, 2 insertions, 110 deletions
diff --git a/include/bt_target.h b/include/bt_target.h
index 2143e53b4..196883410 100644
--- a/include/bt_target.h
+++ b/include/bt_target.h
@@ -278,14 +278,6 @@
#define BTM_CMD_POOL_ID GKI_POOL_ID_2
#endif
-#ifndef OBX_LRG_DATA_POOL_SIZE
-#define OBX_LRG_DATA_POOL_SIZE GKI_BUF4_SIZE
-#endif
-
-#ifndef OBX_LRG_DATA_POOL_ID
-#define OBX_LRG_DATA_POOL_ID GKI_POOL_ID_4
-#endif
-
/* Used to send data to L2CAP. */
#ifndef GAP_DATA_POOL_ID
#define GAP_DATA_POOL_ID GKI_POOL_ID_3
@@ -600,7 +592,6 @@ extern "C" {
/* If the user does not respond to security process requests within this many seconds,
* a negative response would be sent automatically.
- * It's recommended to use a value between 30 and OBX_TIMEOUT_VALUE
* 30 is LMP response timeout value */
#ifndef BTM_SEC_TIMEOUT_VALUE
#define BTM_SEC_TIMEOUT_VALUE 35
@@ -1171,99 +1162,6 @@ extern "C" {
/******************************************************************************
**
-** OBX
-**
-******************************************************************************/
-#ifndef OBX_INCLUDED
-#define OBX_INCLUDED FALSE
-#endif
-
-#ifndef OBX_CLIENT_INCLUDED
-#define OBX_CLIENT_INCLUDED TRUE
-#endif
-
-#ifndef OBX_SERVER_INCLUDED
-#define OBX_SERVER_INCLUDED TRUE
-#endif
-
-/* TRUE to include OBEX authentication/MD5 code */
-#ifndef OBX_MD5_INCLUDED
-#define OBX_MD5_INCLUDED TRUE
-#endif
-
-/* TRUE to include OBEX 1.4 enhancement (including Obex Over L2CAP) */
-#ifndef OBX_14_INCLUDED
-#define OBX_14_INCLUDED FALSE
-#endif
-/* MD5 code is required to use OBEX 1.4 features (Reliable session) */
-#if (OBX_MD5_INCLUDED == FALSE)
-#undef OBX_14_INCLUDED
-#define OBX_14_INCLUDED FALSE
-#endif
-
-/* L2CAP FCR/eRTM mode is required to use OBEX Over L2CAP */
-#if (L2CAP_FCR_INCLUDED == FALSE)
-#undef OBX_14_INCLUDED
-#define OBX_14_INCLUDED FALSE
-#endif
-
-/* The idle timeout value. 0 for no timeout event. */
-#ifndef OBX_TIMEOUT_VALUE
-#define OBX_TIMEOUT_VALUE 60
-#endif
-
-/* The maximum number of registered servers. */
-#ifndef OBX_NUM_SERVERS
-#define OBX_NUM_SERVERS 12
-#endif
-
-/* The maximum number of sessions per registered server. */
-#ifndef OBX_MAX_SR_SESSION
-#define OBX_MAX_SR_SESSION 4
-#endif
-
-/* The maximum number of sessions per registered server.
- * must be less than MAX_BD_CONNECTIONS */
-#ifndef OBX_MAX_SR_SESSION
-#define OBX_MAX_SR_SESSION 4
-#endif
-
-/* The maximum number of suspended sessions per registered servers. */
-#ifndef OBX_MAX_SUSPEND_SESSIONS
-#define OBX_MAX_SUSPEND_SESSIONS 4
-#endif
-
-/* The maximum number of active clients. */
-#ifndef OBX_NUM_CLIENTS
-#define OBX_NUM_CLIENTS 8
-#endif
-
-/* The maximum length of OBEX target header.*/
-#ifndef OBX_MAX_TARGET_LEN
-#define OBX_MAX_TARGET_LEN 16
-#endif
-
-/* This option is application when OBX_14_INCLUDED=TRUE
-GKI Buffer Pool ID used to hold MPS segments during SDU reassembly
-*/
-#ifndef OBX_FCR_RX_POOL_ID
-#define OBX_FCR_RX_POOL_ID HCI_ACL_POOL_ID
-#endif
-
-/* This option is application when OBX_14_INCLUDED=TRUE
-GKI Buffer Pool ID used to hold MPS segments used in (re)transmissions.
-L2CAP_DEFAULT_ERM_POOL_ID is specified to use the HCI ACL data pool.
-Note: This pool needs to have enough buffers to hold two times the window size negotiated
- in the L2CA_SetFCROptions (2 * tx_win_size) to allow for retransmissions.
- The size of each buffer must be able to hold the maximum MPS segment size passed in
- L2CA_SetFCROptions plus BT_HDR (8) + HCI preamble (4) + L2CAP_MIN_OFFSET (11 - as of BT 2.1 + EDR Spec).
-*/
-#ifndef OBX_FCR_TX_POOL_ID
-#define OBX_FCR_TX_POOL_ID HCI_ACL_POOL_ID
-#endif
-
-/******************************************************************************
-**
** BNEP
**
******************************************************************************/
diff --git a/include/gki_target.h b/include/gki_target.h
index 20fb036fb..c8aafa616 100644
--- a/include/gki_target.h
+++ b/include/gki_target.h
@@ -180,13 +180,7 @@
#define GKI_MAX_BUF_SIZE_POOL_ID GKI_POOL_ID_3
#endif
-/* RESERVED buffer pool for OBX */
-/* Ideally there should be 1 buffer for each instance for RX data, and some number
-of TX buffers based on active instances. OBX will only use these if packet size
-requires it. In most cases the large packets are used in only one direction so
-the other direction will use smaller buffers.
-Devices with small amount of RAM should limit the number of active obex objects.
-*/
+/* Pool 4 is unused */
/* The size of the buffers in pool 4. */
#ifndef GKI_BUF4_SIZE
#define GKI_BUF4_SIZE (8080+26)
@@ -194,7 +188,7 @@ Devices with small amount of RAM should limit the number of active obex objects.
/* The number of buffers in buffer pool 4. */
#ifndef GKI_BUF4_MAX
-#define GKI_BUF4_MAX (OBX_NUM_SERVERS + OBX_NUM_CLIENTS)
+#define GKI_BUF4_MAX 0
#endif
/* The ID of buffer pool 4. */