diff options
author | Florian Grandel <fgrandel@gmail.com> | 2015-06-17 21:16:34 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-06-18 12:11:51 -0400 |
commit | d2609b345ebf0547015a78588c4d7ad68c9ccf26 (patch) | |
tree | 2b0d35d71227e87a1b1906158bada9dbb63e8fe1 /net/bluetooth/mgmt.c | |
parent | aebceccc18bf49f8fb208ac4548b7bd402b6662c (diff) |
Bluetooth: hci_core/mgmt: Introduce multi-adv list
The current hci dev structure only supports a single advertising
instance. To support multi-instance advertising it is necessary to
introduce a linked list of advertising instances so that multiple
advertising instances can be dynamically added and/or removed.
In a first step, the existing adv_instance member of the hci_dev
struct is supplemented by a linked list of advertising instances.
This patch introduces the list and supporting list management
infrastructure. The list is not being used yet.
Signed-off-by: Florian Grandel <fgrandel@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index e41bbe28a36e..92c50a17fdf9 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -6813,7 +6813,7 @@ static int read_adv_features(struct sock *sk, struct hci_dev *hdev, | |||
6813 | rp->supported_flags = cpu_to_le32(supported_flags); | 6813 | rp->supported_flags = cpu_to_le32(supported_flags); |
6814 | rp->max_adv_data_len = HCI_MAX_AD_LENGTH; | 6814 | rp->max_adv_data_len = HCI_MAX_AD_LENGTH; |
6815 | rp->max_scan_rsp_len = HCI_MAX_AD_LENGTH; | 6815 | rp->max_scan_rsp_len = HCI_MAX_AD_LENGTH; |
6816 | rp->max_instances = 1; | 6816 | rp->max_instances = HCI_MAX_ADV_INSTANCES; |
6817 | 6817 | ||
6818 | /* Currently only one instance is supported, so simply return the | 6818 | /* Currently only one instance is supported, so simply return the |
6819 | * current instance number. | 6819 | * current instance number. |