Re: [PATCH 2/2] Bluetooth: Clean up current advertising instance tracking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

> We can simplify a lot of code by making sure hdev->cur_adv_instance is
> always up-to-date. This allows e.g. the removal of the
> get_current_adv_instance() helper function and the special
> HCI_ADV_CURRENT value. This patch also makes selecting instance 0x00
> explicit in the various calls where advertising instances aren't
> enabled, e.g. when HCI_ADVERTISING is set or we've just finished
> enabling LE.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> net/bluetooth/hci_core.c    | 12 +++++---
> net/bluetooth/hci_request.c | 68 ++++++++++-----------------------------------
> net/bluetooth/hci_request.h |  8 ++----
> net/bluetooth/mgmt.c        | 10 ++++---
> 4 files changed, 32 insertions(+), 66 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux