Commit eeb1aafe authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz
Browse files

Bluetooth: hci_sync: Fix not able to set force_static_address



force_static_address shall be writable while hdev is initing but is not
considered powered yet since the static address is written only when
powered.

Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tested-by: default avatarBrian Gix <brian.gix@intel.com>
parent e411443c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -757,7 +757,7 @@ static ssize_t force_static_address_write(struct file *file,
	bool enable;
	int err;

	if (test_bit(HCI_UP, &hdev->flags))
	if (hdev_is_powered(hdev))
		return -EBUSY;

	err = kstrtobool_from_user(user_buf, count, &enable);