mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
device: Fix Powered property getter
This commit is contained in:
parent
5c6024185d
commit
a0b4b4cb2e
@ -867,7 +867,7 @@ static bool device_property_get_powered(struct l_dbus *dbus,
|
||||
void *user_data)
|
||||
{
|
||||
struct device *device = user_data;
|
||||
bool powered = device->state == DEVICE_STATE_OFF;
|
||||
bool powered = device->state != DEVICE_STATE_OFF;
|
||||
|
||||
l_dbus_message_builder_append_basic(builder, 'b', &powered);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user