diff options
Diffstat (limited to 'usr/local/www/status_wireless.php')
-rwxr-xr-x | usr/local/www/status_wireless.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/status_wireless.php b/usr/local/www/status_wireless.php index acf4757..3d708f5 100755 --- a/usr/local/www/status_wireless.php +++ b/usr/local/www/status_wireless.php @@ -66,12 +66,12 @@ $tab_array = array(); $mode = ""; foreach($config['interfaces'] as $interface) { if($interface['wireless'] <> "") { - if($if == $interface['if']) + if($if == $interface['if']) { $enabled = true; - else + $mode = $interface['wireless']['mode']; + } else $enabled = false; $friendly = convert_real_interface_to_friendly_interface_name($interface['if']); - $mode = $interface['wireless']['mode']; if($interface['descr'] <> "") $friendly = $interface['descr']; $tab_array[] = array("Status ($friendly)", $enabled, "status_wireless.php?if={$interface['if']}"); |