From 64604ed59c172fb8c0bb3bd34708057d3a80867f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 14 Jun 2016 11:13:34 -0500 Subject: [PATCH] device: Expose device_enter_state --- src/device.h | 1 + src/wiphy.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device.h b/src/device.h index 55eb38f9..fdc0de2b 100644 --- a/src/device.h +++ b/src/device.h @@ -76,6 +76,7 @@ struct wiphy *device_get_wiphy(struct device *device); uint32_t device_get_ifindex(struct device *device); const uint8_t *device_get_address(struct device *device); +void device_enter_state(struct device *device, enum device_state state); void device_connect_network(struct device *device, struct network *network, struct scan_bss *bss, struct l_dbus_message *message); diff --git a/src/wiphy.c b/src/wiphy.c index b69d2a1e..1c186f84 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -159,7 +159,7 @@ struct wiphy *device_get_wiphy(struct device *device) return device->wiphy; } -static void device_enter_state(struct device *device, enum device_state state) +void device_enter_state(struct device *device, enum device_state state) { l_debug("Old State: %s, new state: %s", device_state_to_string(device->state),