mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-14 14:50:30 +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 commit3ba31aad58) (cherry picked from commit0107c1add3)
This commit is contained in:
parent
fd6606c525
commit
9cdfbde46e
1 changed files with 4 additions and 1 deletions
|
|
@ -8106,7 +8106,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