diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-02 02:04:33 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-02 02:04:33 -0600 |
commit | be2b47d542702ebfdf642f444e2bb9425a2cc4d7 (patch) | |
tree | d5c805fa2d92abca521b649e3524974fef664228 | |
parent | af637766c12cc73913d260bf5e3336cead2d5326 (diff) | |
download | pfsense-be2b47d542702ebfdf642f444e2bb9425a2cc4d7.zip pfsense-be2b47d542702ebfdf642f444e2bb9425a2cc4d7.tar.gz |
Actually find the first wireless interface like the code says it is supposed to do, rather than finding the last.
-rwxr-xr-x | usr/local/www/status_wireless.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/status_wireless.php b/usr/local/www/status_wireless.php index 751810a..0ec7e6a 100755 --- a/usr/local/www/status_wireless.php +++ b/usr/local/www/status_wireless.php @@ -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; + } } } ?> |