From 72d2682c1e81951c4e492b1b035eb2de46b72e52 Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Sat, 7 Aug 2010 14:16:26 -0600 Subject: Move the get_real_interface call above this condition and fix the ID of the rescan button. --- usr/local/www/status_wireless.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr/local/www/status_wireless.php') diff --git a/usr/local/www/status_wireless.php b/usr/local/www/status_wireless.php index 169dbe1..074db75 100755 --- a/usr/local/www/status_wireless.php +++ b/usr/local/www/status_wireless.php @@ -77,8 +77,8 @@ foreach($ciflist as $interface => $ifdescr) { $tab_array[] = array("Status ($ifdescr)", $enabled, "status_wireless.php?if={$interface}"); } } +$rwlif = get_real_interface($if); if($_POST['rescanwifi'] <> "") { - $rwlif = get_real_interface($if); mwexec_bg("/sbin/ifconfig {$rwlif} scan 2>&1"); $savemsg = "Rescan has been initiated in the background. Refresh this page in 10 seconds to see the results."; } @@ -92,7 +92,7 @@ display_top_tabs($tab_array);
\n"; + print "
\n"; print "Nearby access points or ad-hoc peers.
\n"; print "\n"; print ""; @@ -105,7 +105,6 @@ display_top_tabs($tab_array); print "CAPS"; print "\n\n"; - $rwlif = get_real_interface($if); exec("/sbin/ifconfig {$rwlif} list scan 2>&1", $states, $ret); /* Skip Header */ array_shift($states); -- cgit v1.1