Project

General

Profile

« Previous | Next » 

Revision 6416317a

Added by Valentin Neacsu almost 9 years ago

Bring up the wifi interface only after setting up all the other arguments. This prevents issues when using VAPs.

View differences:

src/etc/inc/interfaces.inc
2578 2578

  
2579 2579
	$wlcmd = array();
2580 2580
	$wl_sysctl = array();
2581
	/* Make sure it's up */
2582
	$wlcmd[] = "up";
2581
	/* Disable this for now as we will bring up the interface as a last step.
2582
	 * Bringing up the interface with all the other arguments causes issues when using VAPs.
2583
	 * Related to #5616.
2584
	 */
2585
	//$wlcmd[] = "up";
2583 2586
	/* Set a/b/g standard */
2584 2587
	$standard = str_replace(" Turbo", "", $wlcfg['standard']);
2585 2588
	/* skip mode entirely for "auto" */
......
2962 2965
	$wlcmd_args = implode(" ", $wlcmd);
2963 2966
	mwexec("/sbin/ifconfig " . escapeshellarg($if) . " " . $wlcmd_args, false);
2964 2967
	fwrite($wlan_setup_log, "/sbin/ifconfig " . escapeshellarg($if) . " " . "$wlcmd_args \n");
2968
	/* Bring the interface up only after setting up all the other parameters. */
2969
	mwexec("/sbin/ifconfig " . escapeshellarg($if) . " up", false);
2970
	fwrite($wlan_setup_log, "/sbin/ifconfig " . escapeshellarg($if) . " up\n");
2965 2971
	fclose($wlan_setup_log);
2966 2972

  
2967 2973
	unset($wlcmd_args, $wlcmd);

Also available in: Unified diff