Bluetooth: SAP: Header files changes to support SAP on Bluedroid.
This change consists of:
Header file changes for Bluedroid SAP profile
Change-Id: I463543a45691b54577e145e066f89d46b6afd4be
diff --git a/include/hardware/bluetooth.h b/include/hardware/bluetooth.h
index 9a19ee5..94e72d9 100644
--- a/include/hardware/bluetooth.h
+++ b/include/hardware/bluetooth.h
@@ -333,7 +333,7 @@
/** Bluetooth Legacy PinKey Request callback */
typedef void (*pin_request_callback)(bt_bdaddr_t *remote_bd_addr,
- bt_bdname_t *bd_name, uint32_t cod);
+ bt_bdname_t *bd_name, uint32_t cod, uint8_t secure);
/** Bluetooth SSP Request callback - Just Works & Numeric Comparison*/
/** pass_key - Shall be 0 for BT_SSP_PAIRING_VARIANT_CONSENT &
diff --git a/include/hardware/bt_sock.h b/include/hardware/bt_sock.h
index ab36c37..6d98f33 100644
--- a/include/hardware/bt_sock.h
+++ b/include/hardware/bt_sock.h
@@ -19,8 +19,9 @@
__BEGIN_DECLS
-#define BTSOCK_FLAG_ENCRYPT 1
-#define BTSOCK_FLAG_AUTH (1 << 1)
+#define BTSOCK_FLAG_ENCRYPT (1)
+#define BTSOCK_FLAG_AUTH (1 << 1)
+#define BTSOCK_FLAG_AUTH_HIGH (1 << 2)
typedef enum {
BTSOCK_RFCOMM = 1,