Bug 25736 - Network Center is a mess in Mga8
Summary: Network Center is a mess in Mga8
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Olivier Blin
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-24 22:03 CET by w unruh
Modified: 2022-07-14 19:06 CEST (History)
1 user (show)

See Also:
Source RPM: wpa_supplicant-2.9-1.1.mga7.src.rpm , drakx-net-2.42-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description w unruh 2019-11-24 22:03:27 CET
Description of problNetwork Center is becoming more and more of a mess. In addition to the problem of reporting no Access Points (AP) if there are too many of them (see bug 17706) itnow also fails if one uses nl80211 because wpa_suppplicant has broken stuff. 

If one tells network center use nl80211 (in /lib/libDrakX/network/connecttion/wireless.pl ) instead of wext, wpa_supplicant
fails with the error message (in the debug log) of rejecting the scan because of RHL authentication mismatch. (It was trying to authenticate using WPA2, which is of course what RHL is a his means that Network Center in Mga7 is unable to connect to any WPA  access point. 

The Network center display is also broken even worse now. It used to be (in Maga6)ow in Mga7, the window opens but with the desktop background at the window stuck in there which looks even uglier and more useless than a black background. 
 
Finally if you are connecting to site with no security (ie, which usualy dumps you onto a web page with the login when open your browser), the Network center
screen does not show a connection for a long time (minutes) after the connection has been successful (as shown by the network applet and by using the connection). It usually also displays a  "Network connection failed" text until minutes have passed. 
Since the writer fo Network Center left ( and even before) Network Center has not received any attention, and it is showing more and more. When it works I certainly like it better than Network manager, but that caveate is become rarer and rarer.

As mentioned, my own knowledge of Perl is so non-existant that although I sometimes understand why the bug is taking place, I cannot fix it.
Comment 1 Lewis Smith 2019-11-25 10:17:01 CET
Assigning to tv for the Network Centre.
(I could not find the program, hence SRPM, in question).

Assignee: bugsquad => thierry.vignaud

Thierry Vignaud 2019-11-25 14:43:19 CET

Assignee: thierry.vignaud => mageia

Comment 2 w unruh 2019-11-25 15:32:30 CET
(In reply to Lewis Smith from comment #1)
> Assigning to tv for the Network Centre.
> (I could not find the program, hence SRPM, in question).

Not sure which program you are referring to.
I have changed the Sources to refer to the spacific versions in Mga7 that I have installed. I will also put in one dump from a connection attempt to a wpa2-psk access point.

Note:
1574618922.483107: Initializing interface 'wlp58s0' conf '/etc/sysconfig/network-scripts/wireless.d/NETGEAR45-5G.wpa' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'

and

1574618931.012619: wlp58s0: 0: a0:63:91:d9:5f:fe ssid='NETGEAR45-5G' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-65 freq=5765  wps
1574618931.012628: wlp58s0:    skip RSN IE - key mgmt mismatch
1574618931.012637: wlp58s0:    allow in non-WPA/WPA2
1574618931.012645: wlp58s0:    skip - privacy mismatch

Notice that the "privacy mismatch, it seems because nl80211 reports RSN while the request is for WPA2. (which are  supposed to be synonymous).

Again I presume the default driver was switched from nl80211 which it got changed to a couple of years ago, to wext, a highly deprecated driver.

Source RPM: Network center and wpa_supplicant 2.6 in Mgin Mga7a6, and libdrakx-net-2.32 and wpa_supplicant 2.7 in Mga7 => wpa_supplicant-2.9-1.1.mga7.src.rpm , drakx-net-2.42-1.mga7.src.rpm

Comment 3 Aurelien Oudelet 2021-07-06 13:17:02 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 4 w unruh 2021-07-06 18:13:43 CEST
The program in which the driver (wext) is listed is in 
/lib/libDrakX/network/connection/wireless.pm
(I managed to get two misspellings into the name. Sorry.)
wext is deprecated for nl80211. wireless.pm uses wext still in Mga8. 
in package libdrakx-net-2.55-1.mga8

I have not been able to test Mga8 thoroughly as to whether wpa-supplicant now allows RSN rather than WPA2. Because of covid, my laptop, which is used when I travel, has had no use for the past almost 2 years and certainly not after I upgraded to mga8.
I hope this will change in the next while.

Version: 7 => 8

Comment 5 w unruh 2022-05-10 23:46:23 CEST
If one includes RSN as one of the allowed connection types (I think that is what I meant by RHL) then wpa_supplicant seems to work now with nl80211 as the driver.
Comment 6 w unruh 2022-07-14 11:21:28 CEST
I have now done 3 things
1)I replace wpa_supplicant with the newest version 2.10-2. They have worked to improve the selection process, and it seems at least now to pick the strongest/stronger BSSID for a given SSID. This helps a huge amount both in stability of the selection and speed of selection.


2)  I have replaced wext by nl80211 in /lib/libDrakx/network/connection/wireless.pm. wext craps out totally if there are too many BSSID visible tothe network card (It lists nothing, rather than say the strongest 20 whereas nl80211 lists everything. I have not had trouble yet.



3) In the NetworkCenter desktop icon, I run draknetcenter with sudo. That will of course not work if the user does not have the sudo permissions to run draknetcenter. wpa_cli is proper program to run with wpa_supplicant, NOT iwlist but wpa_cli runs properly only under root, not under a user. In wireless.pm, if the system is run as root, then wpa_cli is used, bot otherwise iwlist is used. Both wext and iwlist have been deprecated for over 10 years, but the Mageia support for wireless has really lagged. Ie, wpa_cli and nl80211 should always be used, but this would require that networkcenter be run as suid root or that wireless.pm perl program be replaced by an suid root program.

I have been doing this for almost a month now, and things seem to be working much more stably than before. 

So, instructions:
Install wpa_supplicant 2.10 from cauldron resolving dependencies possibly by hand (installing them from Mga8 seems to work)

Change wext to nl80211 in wireless.pm

Give the users who would start networkcenter sudo priviledges to sudo run
/usr/bin/draknetcenter
(You do this in /etc/sudoers.conf or in /etc/sudoers.d/)
In the icon (right click on the icon, go to Properties->Application) insert sudo in front of the command.

As I said this all seems to work. Now I do not know if there are side effects on other than wireless connections.
Dave Hodgins 2022-07-14 19:06:11 CEST

Summary: Network Center is a mess in Mga7 => Network Center is a mess in Mga8
CC: (none) => davidwhodgins


Note You need to log in before you can comment on or make changes to this bug.