mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not specify a wlan # and let freebsd decide and return the interface that was created before renaming.
This commit is contained in:
parent
19e83210b0
commit
cddb1be2e9
@ -1306,8 +1306,8 @@ function interface_wireless_clone($if, $wlcfg) {
|
||||
// Setup wireless nic
|
||||
if($wlcfg['wireless']['mode'] == "hostap")
|
||||
$mode = "wlanmode hostap";
|
||||
exec("/sbin/ifconfig wlan{$interface_num} create wlandev {$wlcfg['if']} {$mode}");
|
||||
exec("/sbin/ifconfig wlan{$interface_num} name {$wlcfg['if']}_wlan{$interface_num}");
|
||||
$newif = trim(`/sbin/ifconfig wlan create wlandev {$wlcfg['if']} {$mode}`);
|
||||
exec("/sbin/ifconfig wlan{$newif} name {$wlcfg['if']}_wlan{$interface_num}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user