mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-19 12:20:35 +01:00
platform: don't initialize pllink when not needed
This commit is contained in:
parent
787dc484b3
commit
0b4010d740
1 changed files with 1 additions and 1 deletions
|
|
@ -5988,9 +5988,9 @@ wifi_get_wifi_data (NMPlatform *platform, int ifindex)
|
|||
NMWifiUtils *wifi_data;
|
||||
|
||||
wifi_data = g_hash_table_lookup (priv->wifi_data, GINT_TO_POINTER (ifindex));
|
||||
pllink = nm_platform_link_get (platform, ifindex);
|
||||
|
||||
if (!wifi_data) {
|
||||
pllink = nm_platform_link_get (platform, ifindex);
|
||||
if (pllink) {
|
||||
if (pllink->type == NM_LINK_TYPE_WIFI)
|
||||
wifi_data = nm_wifi_utils_new (ifindex, TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue