]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Bluetooth: Add HCI command structure for writing current IAC LAP
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 15 Oct 2013 15:34:15 +0000 (08:34 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 15 Oct 2013 15:44:24 +0000 (18:44 +0300)
This patch just adds the HCI command structure for configuring the
current IAC LAP setting. The length of the command is variable and
supports more than two IAC. However since there is only general
discoverable and limited discoverable modes, this can be limited
to two possible IACs.

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

index f4650a8c11943972fea8f5b062a172f5c1da0f58..8b8c3e2ddb06744236dfecdebbffc1ec61c78cf6 100644 (file)
@@ -824,6 +824,12 @@ struct hci_rp_read_num_supported_iac {
 
 #define HCI_OP_READ_CURRENT_IAC_LAP    0x0c39
 
+#define HCI_OP_WRITE_CURRENT_IAC_LAP   0x0c3a
+struct hci_cp_write_current_iac_lap {
+       __u8    num_iac;
+       __u8    iac_lap[6];
+} __packed;
+
 #define HCI_OP_WRITE_INQUIRY_MODE      0x0c45
 
 #define HCI_MAX_EIR_LENGTH             240