Restricted feature-unfreeze for 3.5.3

Stefan Winter swinter at kde.org
Mon Mar 20 17:31:34 GMT 2006


Hi,

> >I'd like to do a very minor new feature: for wireless network detection
> > in KWiFiManager, don't just show WEP but also WPA and WPA2 networks
> > properly. This is just a few LOC (parsing iwlist output a little more
> > thorough than now). Small change, big gain for the user. Would that be
> > okay?
>
> Is that feature ready to be commited? We don't want people to start
> developing new features against the branch.

just wrote it. It's really a trivial 30-seconds-of-coding thing, here's the 
patch inline.
There is also another crypto token that's only used by the madwifi driver, 
it's called "wme_ie". I have no idea if this refers to WPA or WPA2, so if 
someone knows and tells me, I'll add this token as well.
The patch as it is now will display to the user the *highest* encryption 
available (some APs offer rsn and wpa at the same time).

Greetings,

Stefan Winter

Index: interface_wireless_wirelessextensions.cpp
===================================================================
--- interface_wireless_wirelessextensions.cpp   (revision 520740)
+++ interface_wireless_wirelessextensions.cpp   (working copy)
@@ -609,6 +609,16 @@
           networks->setText ( cellcount - 1, 2, quality );
         }

+      if ( !ignoreRemainingBits && data.contains ( "wpa_ie" ) )
+       {
+         networks->setText ( cellcount - 1, 3, QString ( "WPA" ) );
+       }
+
+      if ( !ignoreRemainingBits && data.contains ( "rsn_ie" ) )
+        {
+          networks->setText ( cellcount - 1, 3, QString ( "WPA2" ) );
+        }
+
     }
 }


-- 
The K Desktop Environment
- Stefan Winter -
Areas of Activity:
kdenetwork/wifi (KWiFiManager)
kde-i18n/de (German translation)




More information about the kde-core-devel mailing list