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
1diff --git a/debian/changelog b/debian/changelog
2index 0ba4822..4d2d652 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,9 @@
6+network-manager (1.26.0-1ubuntu2) UNRELEASED; urgency=medium
7+
8+ * platform: add the NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE status check
9+
10+ -- Li-Hao Liao (Leon Liao) <leon.liao@canonical.com> Fri, 07 Aug 2020 14:33:11 +0800
11+
12 network-manager (1.26.0-1ubuntu1) groovy; urgency=medium
13
14 * Resynchronize on Debian, remaining changes:
15diff --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
16new file mode 100644
17index 0000000..82deca3
18--- /dev/null
19+++ b/debian/patches/add-the-NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE-status-check.patch
20@@ -0,0 +1,25 @@
21+Description: platform: add the NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE status check
22+ 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.
23+Author: Li-Hao Liao (Leon Liao) <leon.liao@canonical.com>
24+Origin: upstream, https://gitlab.freedesktop.org/NetworkManager/NetworkManager
25+Forwarded: not-needed
26+Applied-Upstream: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/3ba31aad5817547058c9d04dd4f690c6bd488cb4
27+Last-Update: 2020-08-10
28+---
29+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
30+Index: network-manager/src/platform/nm-linux-platform.c
31+===================================================================
32+--- network-manager.orig/src/platform/nm-linux-platform.c
33++++ network-manager/src/platform/nm-linux-platform.c
34+@@ -8196,7 +8196,10 @@ link_get_wake_on_lan (NMPlatform *platfo
35+ if (!wifi_data)
36+ return FALSE;
37+
38+- return nm_wifi_utils_get_wake_on_wlan (wifi_data) != NM_SETTING_WIRELESS_WAKE_ON_WLAN_NONE;
39++ return !NM_IN_SET (nm_wifi_utils_get_wake_on_wlan (wifi_data),
40++ NM_SETTING_WIRELESS_WAKE_ON_WLAN_NONE,
41++ NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE);
42++
43+ } else
44+ return FALSE;
45+ }
46diff --git a/debian/patches/series b/debian/patches/series
47index c25f593..c1b6301 100644
48--- a/debian/patches/series
49+++ b/debian/patches/series
50@@ -3,4 +3,5 @@ Force-online-state-with-unmanaged-devices.patch
51 # Ubuntu patches
52 Provide-access-to-some-of-NM-s-interfaces-to-whoopsie.patch
53 Update-dnsmasq-parameters.patch
54+add-the-NM_SETTING_WIRELESS_WAKE_ON_WLAN_IGNORE-status-check.patch
55

Subscribers

People subscribed via source and target branches

to all changes: