Project

General

Profile

« Previous | Next » 

Revision 72d2682c

Added by Erik Fonnesbeck almost 15 years ago

Move the get_real_interface call above this condition and fix the ID of the rescan button.

View differences:

usr/local/www/status_wireless.php
77 77
		$tab_array[] = array("Status ($ifdescr)", $enabled, "status_wireless.php?if={$interface}");
78 78
	}
79 79
}
80
$rwlif = get_real_interface($if);
80 81
if($_POST['rescanwifi'] <> "") {
81
	$rwlif = get_real_interface($if);
82 82
	mwexec_bg("/sbin/ifconfig {$rwlif} scan 2>&1");
83 83
	$savemsg = "Rescan has been initiated in the background. Refresh this page in 10 seconds to see the results.";
84 84
}
......
92 92
<?php
93 93

  
94 94
	/* table header */
95
	print "<tr><td colspan=7><b><input type=\"submit\" name=\"rescanwifi\" id=\"disablecarp\" value=\"Rescan\"><br/></td></tr>\n";
95
	print "<tr><td colspan=7><b><input type=\"submit\" name=\"rescanwifi\" id=\"rescanwifi\" value=\"Rescan\"><br/></td></tr>\n";
96 96
	print "<tr><td colspan=7><b>Nearby access points or ad-hoc peers.<br/></td></tr>\n";
97 97
	print "\n<tr>";
98 98
	print "<tr bgcolor='#990000'>";
......
105 105
	print "<td><b><font color='#ffffff'>CAPS</td>";
106 106
	print "</tr>\n\n";
107 107

  
108
	$rwlif = get_real_interface($if);
109 108
	exec("/sbin/ifconfig {$rwlif} list scan 2>&1", $states, $ret);
110 109
	/* Skip Header */
111 110
	array_shift($states);

Also available in: Unified diff