Return-Path: From: Arman Uguray To: linux-bluetooth@vger.kernel.org Cc: Arman Uguray Subject: [PATCH 2/6] Bluetooth: Introduce HCI_ADVERTISING_INSTANCE setting and add AD flags Date: Thu, 19 Mar 2015 17:04:33 -0700 Message-Id: <1426809877-22469-3-git-send-email-armansito@chromium.org> In-Reply-To: <1426809877-22469-1-git-send-email-armansito@chromium.org> References: <1426809877-22469-1-git-send-email-armansito@chromium.org> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: This patch introduces the HCI_ADVERTISING_INSTANCE setting, which is set when an at least one advertising instance has been added using the "Add Advertising" mgmt command. This patch also adds macro definitions various advertising data fields which can be assigned using the "Add Advertising" command. Signed-off-by: Arman Uguray --- include/net/bluetooth/hci.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 06e7eee..e400175 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -227,6 +227,7 @@ enum { HCI_LE_ENABLED, HCI_ADVERTISING, HCI_ADVERTISING_CONNECTABLE, + HCI_ADVERTISING_INSTANCE, HCI_CONNECTABLE, HCI_DISCOVERABLE, HCI_LIMITED_DISCOVERABLE, @@ -477,6 +478,19 @@ enum { #define LE_AD_SIM_LE_BREDR_CTRL 0x08 /* Simultaneous LE & BR/EDR Controller */ #define LE_AD_SIM_LE_BREDR_HOST 0x10 /* Simultaneous LE & BR/EDR Host */ +/* Other Low Energy Advertising Data fielt types */ +#define LE_AD_FIELD_SOLICIT16 0x14 /* 16-bit service solic. UUIDs */ +#define LE_AD_FIELD_SOLICIT32 0x1F /* 32-bit service solic. UUIDs */ +#define LE_AD_FIELD_SOLICIT128 0x15 /* 128-bit service solic. UUIDs */ +#define LE_AD_FIELD_SVC_DATA16 0x16 /* Service Data - 16-bit UUID */ +#define LE_AD_FIELD_SVC_DATA32 0x20 /* Service Data - 32-bit UUID */ +#define LE_AD_FIELD_SVC_DATA128 0x21 /* Service Data - 128-bit UUID */ +#define LE_AD_FIELD_PUB_TRGT_ADDR 0x17 /* Public Target Address */ +#define LE_AD_FIELD_RND_TRGT_ADDR 0x18 /* Random Target Address */ +#define LE_AD_FIELD_APPEARANCE 0x19 /* Appearance */ +#define LE_AD_FIELD_MANUF_DATA 0xFF /* Manufacturer Specific Data */ + + /* ----- HCI Commands ---- */ #define HCI_OP_NOP 0x0000 -- 2.2.0.rc0.207.ga3a616c