Bug 202864

Summary: Wrong tooltip for WPA2-only networks
Product: [Unmaintained] Network Management Reporter: Onno Molenkamp <onno>
Component: knetworkmanagerAssignee: Will Stephenson <wstephenson>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Onno Molenkamp 2009-08-06 21:55:00 UTC
Version:            (using KDE 4.3.0)
OS:                Linux
Installed from:    SuSE RPMs

WPA2-only networks get a WEP icon and tooltip in the NetworkManager system tray menu. It looks like this is caused by a bug in the securityLevel method in playground/base/plasma/applets/networkmanager/monolithic/tooltipbuilder.cpp:

    if (wpaFlags.testFlag( Solid::Control::AccessPoint::PairWep40 ) ||
        wpaFlags.testFlag( Solid::Control::AccessPoint::PairWep104 ) ||
        (wpaFlags == 0 && capabilities.testFlag(Solid::Control::AccessPoint::Privacy))) {

        level = i18nc("@info:tooltip security level", "WEP");
    }

Here, both wpaFlags (WPA) and rsnFlags (WPA2) should be checked or alternatively, the WEP case should be moved to after the checks for WPA-PSK.

The check for WPA-EAP a few lines later should also be changed to include rsnFlags instead of just wpaFlags.

Ideally, the tooltip should display different values for WPA, WPA+WPA2 and WPA2 networks.

(I'm not sure the component I've chosed is right for the KDE4 NetworkManager component - I couldn't find a better one)
Comment 1 Will Stephenson 2009-08-11 13:12:14 UTC
Fixed in SVN by r1009937.
Comment 2 Will Stephenson 2009-08-11 13:28:49 UTC

*** This bug has been marked as a duplicate of bug 201993 ***