WiFi being detected as ethernet when race condition on renaming for persistent name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HWE Next |
Fix Released
|
Undecided
|
Unassigned | ||
NetworkManager |
Fix Released
|
Medium
|
|||
OEM Priority Project |
Confirmed
|
Medium
|
Shih-Yuan Lee | ||
Xenial |
Confirmed
|
Medium
|
Shih-Yuan Lee | ||
network-manager (Ubuntu) |
Fix Released
|
High
|
Aron Xu | ||
Xenial |
New
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* It is a very bad user experience that the WiFi device is recognized as an Ethernet device making Ubuntu users unable to connect to WiFi network.
[Test Case]
* Find some laptop that can reduplicate this issue.
* Keep rebooting the system until you see this issue.
* Usually this issue can be reduplicated within 10 reboot cycles on the right laptop.
[Regression Potential]
* No trivial regression.
[Other Info]
* network-
[Original Bug Description]
Forwarded https:/
Version: NetworkManager 1.4.2
This bug happens after power-on with probability about 1/50.
That means we need to reboot about 50 times to get into the buggy situation.
"nmcli d" shows the device type is ethernet:
DEVICE TYPE STATE CONNECTION
wlp1s0 ethernet unavailable --
lo loopback unmanaged --
The bug starts from a race condition. But it is not the root cause.
I've also attach 2 logs. One is in good situation. Another is in bad situation.
This log is generated by applying a "log patch" to network-manager 1.4.2 so we can see more stuff.
In the bad situation. The bug starts with race condition. But the race condition is not the root cause. The race condition is:
* During the renaming from "wlan0" to "wlp1s0". "wlan0" disappeared.
* Inside the NM, it is still using "wlan0" in "_linktype_
* Since /sys/class/
* Also wifi_utils_
* And finally, devtype and kind are both NULL, so it returns NM_LINK_
Later, wlan0 is renamed to wlp1s0, and it seems to me that the Object inherit the type so it is still type ethernet.
But from the log, I saw _linktype_
I'm wondering if we are missing to update the type in the Object created after renaming and re-detecting the type.
fix need landing LP: #1645698
Changed in network-manager: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in oem-priority: | |
importance: | Undecided → Critical |
milestone: | none → ubuntu12.04.4 |
milestone: | ubuntu12.04.4 → none |
Changed in network-manager: | |
status: | Confirmed → Fix Released |
Changed in network-manager (Ubuntu): | |
assignee: | nobody → Aron Xu (happyaron) |
Changed in oem-priority: | |
status: | New → Triaged |
assignee: | nobody → Alex Tu (alextu) |
tags: | added: needed-by-1655901 |
description: | updated |
Changed in hwe-next: | |
status: | New → Fix Released |
Changed in oem-priority: | |
assignee: | Alex Tu (alextu) → Shih-Yuan Lee (fourdollars) |
Changed in oem-priority: | |
status: | Triaged → Fix Released |
Changed in oem-priority: | |
status: | Fix Released → Confirmed |
Changed in oem-priority: | |
status: | Confirmed → In Progress |
description: | updated |
Changed in oem-priority: | |
importance: | Critical → High |
tags: | added: oem-priority |
The commits in this merge can fix this bug: /cgit.freedeskt op.org/ NetworkManager/ NetworkManager/ commit/ ?id=0d7bf7dee31 175d3eeab2bd5a9 eef8e7b6618016
https:/