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)
(cherry picked from commit 0107c1add3)
This commit is contained in:
Li-Hao Liao (Leon Liao) 2020-08-04 16:56:23 +08:00 committed by Beniamino Galvani
parent fd6606c525
commit 9cdfbde46e

View file

@ -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;
}