mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-16 12:21:37 +01:00
platform: add the NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE status check
In some cases, the wow is not configured and the
NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE is set.
So, add the NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE status check.
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/597
(cherry picked from commit 3ba31aad58)
This commit is contained in:
parent
029d07b019
commit
0107c1add3
1 changed files with 4 additions and 1 deletions
|
|
@ -8196,7 +8196,10 @@ link_get_wake_on_lan (NMPlatform *platform, int ifindex)
|
|||
if (!wifi_data)
|
||||
return FALSE;
|
||||
|
||||
return nm_wifi_utils_get_wake_on_wlan (wifi_data) != NM_SETTING_WIRELESS_WAKE_ON_WLAN_NONE;
|
||||
return !NM_IN_SET (nm_wifi_utils_get_wake_on_wlan (wifi_data),
|
||||
NM_SETTING_WIRELESS_WAKE_ON_WLAN_NONE,
|
||||
NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE);
|
||||
|
||||
} else
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue