Bug 422740 - Every WiFi is marked as having "unknown security type"
Summary: Every WiFi is marked as having "unknown security type"
Status: RESOLVED FIXED
Alias: None
Product: plasma-nm
Classification: Plasma
Component: applet (show other bugs)
Version: 5.19.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-06-10 12:28 UTC by tgnff242
Modified: 2020-06-11 13:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.19.1


Attachments
Patch to fix this issue (1.11 KB, patch)
2020-06-11 10:09 UTC, Jan Grulich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tgnff242 2020-06-10 12:28:21 UTC
SUMMARY

The networkmanager applet shows all wifi as "unknown security type". The "security" column of 'nmcli device wifi' is correct. See also Bug 415670.

BTW, shouldn't the MAC address that shows in the network's details be the address of the router's wifi, instead of the MAC of the laptop's wifi card?

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Comment 1 Jan Grulich 2020-06-10 13:14:40 UTC
What is your NetworkManager version? 

I cannot reproduce this issue, I see WPA2-PSK for each WiFi network I see.
Comment 2 tgnff242 2020-06-10 13:30:32 UTC
It seems it broke after an update in networkmanager. I can reproduce the issue with 1.24.2, which archlinux is at, but not with the previous version (1.22.8).
Comment 3 Jan Grulich 2020-06-10 14:02:25 UTC
(In reply to tgnff242 from comment #2)
> It seems it broke after an update in networkmanager. I can reproduce the
> issue with 1.24.2, which archlinux is at, but not with the previous version
> (1.22.8).

Ok. I will build latest NM and try to investigate.
Comment 4 Nate Graham 2020-06-10 16:37:49 UTC
I can also reproduce this for all un-connected wifi networks. My networkmanager version is 1.24.2 on openSUSE Tumbleweed.

The currently connected wifi network shows the correct security type.

If this is an NM regression, let's close it as RESOLVED UPSTREAM and track it with a bug report at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues
Comment 5 Jan Grulich 2020-06-11 06:20:44 UTC
I can reproduce now when I updated to newer NetworkManager. I will try to investigate during the day.
Comment 6 Jan Grulich 2020-06-11 10:09:53 UTC
Created attachment 129228 [details]
Patch to fix this issue

Anyone willing to try this patch?
Comment 7 tgnff242 2020-06-11 11:07:08 UTC
Yes, the patch seems to work perfectly. Thank you.

Could you answer my question about the MAC address? Is it expected to show the address of the wifi card instead of the router's BSSID?
Comment 8 Jan Grulich 2020-06-11 12:59:41 UTC
(In reply to tgnff242 from comment #7)
> Yes, the patch seems to work perfectly. Thank you.
> 
> Could you answer my question about the MAC address? Is it expected to show
> the address of the wifi card instead of the router's BSSID?

Yes, it is expected. I think it is more meaningful as it's an information you might be asked to provide to your ISP for example. We used to have BSSID there, but we limited the information as we just want to focus on most basic/needed ones.
Comment 9 Jan Grulich 2020-06-11 13:03:38 UTC
Git commit 4fbe7b4d19e9208141ccdd245ae68cb63572a3b8 by Jan Grulich.
Committed on 11/06/2020 at 13:02.
Pushed by grulich into branch 'Plasma/5.19'.

Testing AccessPoint::Privacy flag is not enough to check whether AP is secured

The privacy flag is not used all the time and for some security types it
might not be set by newer NetworkManager versions. Instead add additional
checks for WPA and RSN flags.

M  +2    -1    libs/models/networkmodel.cpp

https://invent.kde.org/plasma/plasma-nm/commit/4fbe7b4d19e9208141ccdd245ae68cb63572a3b8