[PC-BSD Commits] r9781 - pcbsd/current/src-qt4/libpcbsd

svn at pcbsd.org svn at pcbsd.org
Fri Mar 25 07:33:48 PDT 2011


Author: kenmoore
Date: 2011-03-25 07:33:48 -0700 (Fri, 25 Mar 2011)
New Revision: 9781

Modified:
   pcbsd/current/src-qt4/libpcbsd/netif.cpp
Log:
Fix a detection bug with unencrypted wifi networks


Modified: pcbsd/current/src-qt4/libpcbsd/netif.cpp
===================================================================
--- pcbsd/current/src-qt4/libpcbsd/netif.cpp	2011-03-25 09:01:42 UTC (rev 9780)
+++ pcbsd/current/src-qt4/libpcbsd/netif.cpp	2011-03-25 14:33:48 UTC (rev 9781)
@@ -38,7 +38,7 @@
 
 #include <qregexp.h>
 #include <qstring.h>
-//#include <QMessageBox>
+#include <QMessageBox>
 
 #include "pcbsd-netif.h"
 #include "pcbsd-utils.h"
@@ -354,11 +354,12 @@
   QStringList secure = parsed[7].split(" "); //put each security type in a different list element
     
   //Examine the CAPS and Security data to determine the wifi encryption type
-  bool isDisabled = !caps.contains("P") && caps.contains("ES") && noSecure; //CAPS = "ES" only -> no security
+  bool isDisabled = !caps.contains("P") && caps.contains("ES"); //CAPS = "ES" only -> no wifi encryption
   bool isWEP = caps.contains("EP") && noSecure; //CAPS = "EP" or "EPS" only (could also be RADIUS security type)
   bool isWPA = secure.contains("WPA"); //both WPA personal and enterprise
   bool isWPA2 = secure.contains("RSN"); //both WPA2 personal and enterprise
   
+  //QMessageBox::warning(0,"Testing wifi Security","caps: "+caps+"\nifconfOut: "+ifconfOut);
   //Output the security type
   QString securityType;
   if(isDisabled){ 



More information about the Commits mailing list