diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-10-16 03:16:46 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-16 03:29:41 -0400 |
commit | 46cad2edb13be71ae11da896411db8a42b82d555 (patch) | |
tree | fb670d5ecc9a9f54f608da0e645fe164cfeed312 /net/bluetooth/mgmt.c | |
parent | 083368f7b8c03a0b3eaa048e84eb9fa9573745d4 (diff) |
Bluetooth: Rename create_ad into create_adv_data
Rename the create_ad function into create_adv_data to make it clear
that it is used to create the advertising data. This is important
since later on a function adding the scan response data will be
added.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 90d935373449..54f14547259b 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -536,7 +536,7 @@ static u8 *create_uuid128_list(struct hci_dev *hdev, u8 *data, ptrdiff_t len) | |||
536 | return ptr; | 536 | return ptr; |
537 | } | 537 | } |
538 | 538 | ||
539 | static u8 create_ad(struct hci_dev *hdev, u8 *ptr) | 539 | static u8 create_adv_data(struct hci_dev *hdev, u8 *ptr) |
540 | { | 540 | { |
541 | u8 ad_len = 0, flags = 0; | 541 | u8 ad_len = 0, flags = 0; |
542 | size_t name_len; | 542 | size_t name_len; |
@@ -605,7 +605,7 @@ static void update_ad(struct hci_request *req) | |||
605 | 605 | ||
606 | memset(&cp, 0, sizeof(cp)); | 606 | memset(&cp, 0, sizeof(cp)); |
607 | 607 | ||
608 | len = create_ad(hdev, cp.data); | 608 | len = create_adv_data(hdev, cp.data); |
609 | 609 | ||
610 | if (hdev->adv_data_len == len && | 610 | if (hdev->adv_data_len == len && |
611 | memcmp(cp.data, hdev->adv_data, len) == 0) | 611 | memcmp(cp.data, hdev->adv_data, len) == 0) |