diff options
author | Thomas Haller <thaller@redhat.com> | 2017-12-27 10:55:08 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-12-27 10:55:09 +0100 |
commit | 24695a6d1c6a69f363be77654c934f4efd86a713 (patch) | |
tree | 2cc73d63dce10bd8345ca7dae35b707cedf1696e | |
parent | 67a20a6ba518bbb3383cfb1601081b34d0c505ed (diff) | |
download | NetworkManager-24695a6d1c6a69f363be77654c934f4efd86a713.tar.gz |
wifi/iwd: fix type-description for NMDeviceIwd
The NMDeviceIwd is an alternative implementation of
NMDeviceWifi, hence, it must also look like a Wi-Fi
device.
Fix the type-description to be "wifi".
-rw-r--r-- | src/devices/wifi/nm-device-iwd.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/devices/wifi/nm-device-iwd.c b/src/devices/wifi/nm-device-iwd.c index da8cee2957..f6252f3019 100644 --- a/src/devices/wifi/nm-device-iwd.c +++ b/src/devices/wifi/nm-device-iwd.c @@ -1786,6 +1786,16 @@ nm_device_iwd_agent_psk_query (NMDeviceIwd *self) /*****************************************************************************/ +static const char * +get_type_description (NMDevice *device) +{ + nm_assert (NM_IS_DEVICE_IWD (device)); + + return "wifi"; +} + +/*****************************************************************************/ + static void nm_device_iwd_init (NMDeviceIwd *self) { @@ -1863,6 +1873,7 @@ nm_device_iwd_class_init (NMDeviceIwdClass *klass) parent_class->complete_connection = complete_connection; parent_class->get_enabled = get_enabled; parent_class->set_enabled = set_enabled; + parent_class->get_type_description = get_type_description; parent_class->act_stage1_prepare = act_stage1_prepare; parent_class->act_stage2_config = act_stage2_config; |