Bluetooth: Add le_addr_type() helper function
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 21 Oct 2015 15:02:59 +0000 (18:02 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Oct 2015 16:35:00 +0000 (18:35 +0200)
commit85813a7ec774b982899c82f86c52cad47588f863
tree86e24683344ac07a237d858f717ac5afc8f103aa
parent8ce783dc5ea3af3a213ac9b4d9d2ccfeeb9c9058
Bluetooth: Add le_addr_type() helper function

The mgmt code needs to convert from mgmt/L2CAP address types to HCI in
many places. Having a dedicated helper function for this simplifies
code by shortening it and removing unnecessary 'addr_type' variables.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c