mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 11:52:34 +01:00
device: Move device_get_wiphy out of wiphy.c
This commit is contained in:
parent
e23ea59f95
commit
74c8af9180
@ -140,6 +140,11 @@ bool device_is_busy(struct device *device)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct wiphy *device_get_wiphy(struct device *device)
|
||||||
|
{
|
||||||
|
return device->wiphy;
|
||||||
|
}
|
||||||
|
|
||||||
void device_disassociated(struct device *device)
|
void device_disassociated(struct device *device)
|
||||||
{
|
{
|
||||||
struct network *network = device->connected_network;
|
struct network *network = device->connected_network;
|
||||||
|
@ -140,11 +140,6 @@ static const char *device_state_to_string(enum device_state state)
|
|||||||
return "invalid";
|
return "invalid";
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wiphy *device_get_wiphy(struct device *device)
|
|
||||||
{
|
|
||||||
return device->wiphy;
|
|
||||||
}
|
|
||||||
|
|
||||||
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",
|
l_debug("Old State: %s, new state: %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user