Re: [PATCH 2/6] Bluetooth: Move mgmt event sending out from hci_add_link_key()

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

 



Hi Johan,

> There are two callers of hci_add_link_key(). The first one is the HCI
> Link Key Notification event and the second one the mgmt code that
> receives a list of link keys from user space. Previously we've had the
> hci_add_link_key() function being responsible for also emitting a mgmt
> signal but for the latter use case this should not happen. Because of
> this a rather awkward new_key paramter has been passed to the function.
> 
> This patch moves the mgmt event sending out from the hci_add_link_key()
> function, thereby making the code a bit more understandable.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> include/net/bluetooth/hci_core.h |  4 ++--
> net/bluetooth/hci_core.c         | 17 +++++------------
> net/bluetooth/hci_event.c        | 18 +++++++++++++++---
> net/bluetooth/mgmt.c             |  4 ++--
> 4 files changed, 24 insertions(+), 19 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