Actually find the first wireless interface like the code says it is supposed to do, rather than finding the last.

This commit is contained in:
Erik Fonnesbeck 2010-08-02 02:04:33 -06:00
parent af637766c1
commit be2b47d542

View File

@ -50,8 +50,10 @@ if(empty($if)) {
/* Find the first interface
that is wireless */
foreach($ciflist as $interface => $ifdescr) {
if(is_interface_wireless(get_real_interface($interface)))
if(is_interface_wireless(get_real_interface($interface))) {
$if = $interface;
break;
}
}
}
?>