[Bug 1867908] Re: Fix RTM NEW/DELLINK IFLA_IFNAME copy for maximum ifname length
Launchpad Bug Tracker
1867908 at bugs.launchpad.net
Thu Apr 16 19:18:38 UTC 2020
This bug was fixed in the package wpa - 2:2.9-1ubuntu4
---------------
wpa (2:2.9-1ubuntu4) focal; urgency=medium
* debian/patches/git_realtek_macrand.patch:
- backport an upstream patch to fix issues with some realtek cards
when MAC address randomization is enabled (lp: #1867908)
-- Sebastien Bacher <seb128 at ubuntu.com> Wed, 15 Apr 2020 10:08:07
+0200
** Changed in: wpa (Ubuntu Focal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1867908
Title:
Fix RTM NEW/DELLINK IFLA_IFNAME copy for maximum ifname length
Status in wpa package in Ubuntu:
Fix Released
Status in wpa source package in Focal:
Fix Released
Bug description:
Some wifi adapters kept asking for a password when MAC address
randomization was enabled.
I reported this to Realtek, and they gave me a patch for
wpa_supplicant, which fixes the issue.
I asked Realtek to report this upstream to wpasupplicant, and they
did, the commit is:
http://w1.fi/cgit/hostap/commit/?id=7546c489a95a033c78331915fcdfa0e6fd74d563
It would be very nice to cherrypick that for Focal.
I uploaded it as a merge request below, and I tested that it fixes the issue with adapters based on the following chipsets:
ath9k, rtl8812au, rtl88x2bu and rtl8821cu
To reproduce this:
Ubuntu's network-manager defaults to "MAC randomization disabled", I think as a workaround to this specific issue. This is defined in two places:
- wifi.scan-rand-mac-address=no in /etc/NetworkManager/NetworkManager.conf
- Some specific drivers in /usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf.
With these, the problem happens in around 10% of the cases.
To be able to reproduce it in 100% of the cases, it's best to remove these Ubuntu workarounds. So:
- Set "wifi.scan-rand-mac-address=yes" in /etc/NetworkManager/NetworkManager.conf
- Remove /usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf.
- systemctl stop network-manager
- killall wpa_supplicant
- systemctl start network-manager
Then insert a USB wifi adapter that results in a big name with 15
characters like wlx74ee2ae2436a and try to connect to a wifi network.
It will keep asking for a password.
Then apply the patch, run the 3 commands above to restart network-
manager, and verify that it can now connect properly.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1867908/+subscriptions
More information about the Ubuntu-sponsors
mailing list