mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 10:18:00 +02:00
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".
This commit is contained in:
parent
67a20a6ba5
commit
24695a6d1c
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue