author | mickeyl <mickeyl> | 2005-05-10 10:32:46 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-10 10:32:46 (UTC) |
commit | 9bcf6a5112d31ffdc196ebcd22a584c68f9f7b1e (patch) (unidiff) | |
tree | a1f50132c3acea6e593fcdc1484798ed237cb157 | |
parent | 2272a0d2ae787ad50768910ac1c7be59a073031a (diff) | |
download | opie-9bcf6a5112d31ffdc196ebcd22a584c68f9f7b1e.zip opie-9bcf6a5112d31ffdc196ebcd22a584c68f9f7b1e.tar.gz opie-9bcf6a5112d31ffdc196ebcd22a584c68f9f7b1e.tar.bz2 |
ignore hostap control interfaces
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | noncore/settings/networksettings/mainwindow/mainwindowimp.cpp | 8 |
2 files changed, 6 insertions, 3 deletions
@@ -20,4 +20,5 @@ | |||
20 | * n.a.- scale BluezApplet appropriately and use larger icons (mickeyl) | 20 | * n.a.- scale BluezApplet appropriately and use larger icons (mickeyl) |
21 | * n.a.- memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) | 21 | * n.a.- memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) |
22 | * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) | ||
22 | 23 | ||
23 | Internal | 24 | Internal |
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 | |||
@@ -190,6 +190,6 @@ void MainWindowImp::getAllInterfaces() | |||
190 | { | 190 | { |
191 | struct ifreq *pifr = &ifrs[i]; | 191 | struct ifreq *pifr = &ifrs[i]; |
192 | 192 | if ( !QString( pifr->ifr_name ).startsWith( "wifi" ) ) ifaces += pifr->ifr_name; | |
193 | ifaces += pifr->ifr_name; | 193 | else odebug << "ignoring hostap control interface " << pifr->ifr_name << oendl; |
194 | } | 194 | } |
195 | } | 195 | } |
@@ -207,5 +207,7 @@ void MainWindowImp::getAllInterfaces() | |||
207 | if((loc = line.find(":")) != -1) | 207 | if((loc = line.find(":")) != -1) |
208 | { | 208 | { |
209 | ifaces += line.left(loc); | 209 | // ignore wifi* (hostap control interfaces) |
210 | if ( !line.left(loc).startsWith( "wifi" ) ) ifaces += line.left(loc); | ||
211 | else odebug << "ignoring hostap control interface " << line.left(loc) << oendl; | ||
210 | } | 212 | } |
211 | } | 213 | } |