]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Bluetooth: Add definitions for MGMT_OP_START_SERVICE_DISCOVERY
authorJakub Pawlowski <jpawlowski@google.com>
Fri, 5 Dec 2014 09:55:54 +0000 (10:55 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 5 Dec 2014 10:37:32 +0000 (12:37 +0200)
This patch adds the opcode and structure for Start Service Discovery
operation.

Signed-off-by: Jakub Pawlowski <jpawlowski@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/mgmt.h

index 9b382ea34fd9e8fa8d0ba46b76e8992be360b286..95c34d5180fa1ec656bf996ed034817674b34ecf 100644 (file)
@@ -498,6 +498,15 @@ struct mgmt_cp_set_public_address {
 } __packed;
 #define MGMT_SET_PUBLIC_ADDRESS_SIZE   6
 
+#define MGMT_OP_START_SERVICE_DISCOVERY        0x003A
+struct mgmt_cp_start_service_discovery {
+       __u8 type;
+       __s8 rssi;
+       __le16 uuid_count;
+       __u8 uuids[0][16];
+} __packed;
+#define MGMT_START_SERVICE_DISCOVERY_SIZE 4
+
 #define MGMT_EV_CMD_COMPLETE           0x0001
 struct mgmt_ev_cmd_complete {
        __le16  opcode;