From 9bcf6a5112d31ffdc196ebcd22a584c68f9f7b1e Mon Sep 17 00:00:00 2001 From: mickeyl Date: Tue, 10 May 2005 10:32:46 +0000 Subject: ignore hostap control interfaces --- (limited to 'noncore/settings') diff --git a/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp index 3222e50..a7b0bdc 100644 --- a/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp @@ -189,8 +189,8 @@ void MainWindowImp::getAllInterfaces() for (unsigned int i = 0; i < ifc.ifc_len / sizeof(struct ifreq); i++) { struct ifreq *pifr = &ifrs[i]; - - ifaces += pifr->ifr_name; + if ( !QString( pifr->ifr_name ).startsWith( "wifi" ) ) ifaces += pifr->ifr_name; + else odebug << "ignoring hostap control interface " << pifr->ifr_name << oendl; } } else @@ -206,7 +206,9 @@ void MainWindowImp::getAllInterfaces() { if((loc = line.find(":")) != -1) { - ifaces += line.left(loc); + // ignore wifi* (hostap control interfaces) + if ( !line.left(loc).startsWith( "wifi" ) ) ifaces += line.left(loc); + else odebug << "ignoring hostap control interface " << line.left(loc) << oendl; } } } -- cgit v0.9.0.2