/* Print the 48-bit EUI MAC address of the radio controller when reading /sys/class/uwb_rc/XX/mac_address  */
static ssize_t uwb_rc_mac_addr_show(struct device *dev, struct device_attribute *attr, char *buf)
/* Print the 48-bit EUI MAC address of the radio controller when reading /sys/class/uwb_rc/XX/mac_address  */
static ssize_t uwb_rc_mac_addr_show(struct device *dev, struct device_attribute *attr, char *buf)
{
	struct uwb_dev *uwb_dev = to_uwb_dev(dev);
	struct uwb_rc *rc = uwb_dev->rc;
	struct uwb_mac_addr addr;
	ssize_t result;
	mutex_lock(&rc->uwb_dev.mutex);
	result = uwb_rc_addr_get(rc, &addr, UWB_ADDR_MAC);
	mutex_unlock(&rc->uwb_dev.mutex);
	if (result >= 0) {
		result = uwb_mac_addr_print(buf, UWB_ADDR_STRSIZE, &addr);
		buf[result++] = '\n';
	}
	return result;
}