3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-30 06:39:46 +01:00

device: Fix Powered property getter

This commit is contained in:
Andrew Zaborowski 2016-06-25 20:42:19 +02:00 committed by Denis Kenzior
parent 5c6024185d
commit a0b4b4cb2e

View File

@ -867,7 +867,7 @@ static bool device_property_get_powered(struct l_dbus *dbus,
void *user_data) void *user_data)
{ {
struct device *device = 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); l_dbus_message_builder_append_basic(builder, 'b', &powered);