/* uwb_dev_get_by_macaddr - get a UWB device with a specific EUI-48 @rc: the radio controller that saw the device @devaddr: EUI-48 of the UWB device to find  */
struct uwb_dev* uwb_dev_get_by_macaddr(struct uwb_rc *rc, const struct uwb_mac_addr *macaddr)
/* uwb_dev_get_by_macaddr - get a UWB device with a specific EUI-48 @rc: the radio controller that saw the device @devaddr: EUI-48 of the UWB device to find  */
struct uwb_dev* uwb_dev_get_by_macaddr(struct uwb_rc *rc, const struct uwb_mac_addr *macaddr)
{
	struct uwb_dev *found = NULL;
	struct uwb_beca_e *bce;
	mutex_lock(&rc->uwb_beca.mutex);
	bce = __uwb_beca_find_bymac(rc, macaddr);
	if (bce)
		found = uwb_dev_try_get(rc, bce->uwb_dev);
	mutex_unlock(&rc->uwb_beca.mutex);
	return found;
}