Re: [PATCH 1/3] Bluetooth: Add a role parameter to hci_conn_add()

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

 



Hi Johan,

> We need to be able to track slave vs master LE connections in
> hci_conn_hash, and to be able to do that we need to know the role of the
> connection by the time hci_conn_add_has() is called. This means in
> practice the hci_conn_add() call that creates the hci_conn_object.
> 
> This patch adds a new role parameter to hci_conn_add() function to give
> the object its initial role value, and updates the callers to pass the
> appropriate role to it. Since the function now takes care of
> initializing both conn->role and conn->out values we can remove some
> other unnecessary assignments.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> include/net/bluetooth/hci_core.h |  3 ++-
> net/bluetooth/amp.c              |  4 ++--
> net/bluetooth/hci_conn.c         | 17 +++++++++--------
> net/bluetooth/hci_event.c        | 17 ++++++-----------
> 4 files changed, 19 insertions(+), 22 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