Merge ~lihow731/network-manager:ubuntu/master into network-manager:ubuntu/master

Proposed by Leon Liao
Status: Superseded
Proposed branch: ~lihow731/network-manager:ubuntu/master
Merge into: network-manager:ubuntu/master
Diff against target: 54 lines (+32/-0)
3 files modified
debian/changelog (+6/-0)
debian/patches/add-the-NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE-status-check.patch (+25/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Iain Lane Needs Fixing
Review via email: mp+388865@code.launchpad.net

This proposal has been superseded by a proposal from 2020-09-10.

Commit message

In some cases, the wow is not configured and the NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE is set (for to disable management of wake-on-LAN in NetworkManager).

The network manager only checks the NM_SETTING_WIRELESS_WAKE_ON_WLAN_NONE bit.
But, the NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE does not be check.
So, the management of wake-on-LAN still is done by NetworkManager.

Description of the change

To post a comment you must log in.
Revision history for this message
Iain Lane (laney) wrote :

Thanks. Can you please add some DEP-3 patch headers to the patch? Author, Description, Origin, Forwarded, Applied-Upstream at least.

Please could you expand the commit / changelog message to say what the *problem* as well as the solution is?

And it would be nice if you could submit to Debian too on Salsa, so (1) more people can benefit from the fix, and (2) it will be less delta.

Thanks again!

https://dep-team.pages.debian.net/deps/dep3/
https://salsa.debian.org/utopia-team/network-manager/

review: Needs Fixing

Unmerged commits

b8d9e15... by Leon Liao

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.

There is a bug in Qualcomm Killer 500s [17cb:1101]:
The Wi-Fi will lost function after resumed from suspend. This bug is
caused by the wow is not configured.
Canonical OEM team already reported this bug to Qualcomm.

In dirver part, the Killer 500s dirver still is in progress.
In network-manager part, the NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE
should be checked.

Qualcomm bug: case#04700668
launchpad bug: https://bugs.launchpad.net/somerville/+bug/1842268

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 0ba4822..4d2d652 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
1network-manager (1.26.0-1ubuntu2) UNRELEASED; urgency=medium
2
3 * platform: add the NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE status check
4
5 -- Li-Hao Liao (Leon Liao) <leon.liao@canonical.com> Fri, 07 Aug 2020 14:33:11 +0800
6
1network-manager (1.26.0-1ubuntu1) groovy; urgency=medium7network-manager (1.26.0-1ubuntu1) groovy; urgency=medium
28
3 * Resynchronize on Debian, remaining changes:9 * Resynchronize on Debian, remaining changes:
diff --git a/debian/patches/add-the-NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE-status-check.patch b/debian/patches/add-the-NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE-status-check.patch
4new file mode 10064410new file mode 100644
index 0000000..82deca3
--- /dev/null
+++ b/debian/patches/add-the-NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE-status-check.patch
@@ -0,0 +1,25 @@
1Description: platform: add the NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE status check
2 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.
3Author: Li-Hao Liao (Leon Liao) <leon.liao@canonical.com>
4Origin: upstream, https://gitlab.freedesktop.org/NetworkManager/NetworkManager
5Forwarded: not-needed
6Applied-Upstream: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/3ba31aad5817547058c9d04dd4f690c6bd488cb4
7Last-Update: 2020-08-10
8---
9This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
10Index: network-manager/src/platform/nm-linux-platform.c
11===================================================================
12--- network-manager.orig/src/platform/nm-linux-platform.c
13+++ network-manager/src/platform/nm-linux-platform.c
14@@ -8196,7 +8196,10 @@ link_get_wake_on_lan (NMPlatform *platfo
15 if (!wifi_data)
16 return FALSE;
17
18- return nm_wifi_utils_get_wake_on_wlan (wifi_data) != NM_SETTING_WIRELESS_WAKE_ON_WLAN_NONE;
19+ return !NM_IN_SET (nm_wifi_utils_get_wake_on_wlan (wifi_data),
20+ NM_SETTING_WIRELESS_WAKE_ON_WLAN_NONE,
21+ NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE);
22+
23 } else
24 return FALSE;
25 }
diff --git a/debian/patches/series b/debian/patches/series
index c25f593..c1b6301 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,4 +3,5 @@ Force-online-state-with-unmanaged-devices.patch
3# Ubuntu patches3# Ubuntu patches
4Provide-access-to-some-of-NM-s-interfaces-to-whoopsie.patch4Provide-access-to-some-of-NM-s-interfaces-to-whoopsie.patch
5Update-dnsmasq-parameters.patch5Update-dnsmasq-parameters.patch
6add-the-NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE-status-check.patch
67

Subscribers

People subscribed via source and target branches

to all changes: