--- wlassistant-0.5.5/src/wlassistant.cpp.BAD 2006-09-11 10:27:30.000000000 -0500
+++ wlassistant-0.5.5/src/wlassistant.cpp 2006-09-11 10:30:22.000000000 -0500
@@ -973,13 +973,18 @@
{
WANetParams empty;
QString o = runCommand( Commands.cmd( "iwconfig_status", empty ) );
- QStringList ol = QStringList::split("\n\n", o);
+ QStringList ol = QStringList::split("\n\n", o); // do we really need two
int c = ol.count();
QStringList ifList = QStringList();
for (int i = 0; i < c; i++) {
o = ol[i];
- if ( o.find("no wireless extensions")==-1 ) //string not found
- ifList << o.left(o.find(" "));
+ if ( o.find("no wireless extensions")==-1 ) {
+ if ( o.find("Warning:") == -1 ) {
+ QString interface = o.left(o.find(" "));
+ if ( interface.length() > 1 )
+ ifList << interface;
+ }
+ }
}
return ifList;
}