platform/linux: recognize WPAN links

This commit is contained in:
Lubomir Rintel
2018-03-09 15:48:24 +01:00
parent dbb205d8d2
commit 4e3d2f5a85
2 changed files with 5 additions and 1 deletions

View File

@@ -534,6 +534,7 @@ static const LinkDesc linktypes[] = {
{ NM_LINK_TYPE_WIFI, "wifi", NULL, "wlan" },
{ NM_LINK_TYPE_WWAN_NET, "wwan", NULL, "wwan" },
{ NM_LINK_TYPE_WIMAX, "wimax", "wimax", "wimax" },
{ NM_LINK_TYPE_WPAN, "wpan", NULL, NULL },
{ NM_LINK_TYPE_BNEP, "bluetooth", NULL, "bluetooth" },
{ NM_LINK_TYPE_DUMMY, "dummy", "dummy", NULL },
@@ -842,6 +843,8 @@ _linktype_get_type (NMPlatform *platform,
return NM_LINK_TYPE_IP6TNL;
else if (arptype == ARPHRD_PPP)
return NM_LINK_TYPE_PPP;
else if (arptype == ARPHRD_IEEE802154)
return NM_LINK_TYPE_WPAN;
{
NMPUtilsEthtoolDriverInfo driver_info;