sync macs with vif bssids in broadcom.sh, fixes multi-ssid with wpa
SVN-Revision: 15028
This commit is contained in:
parent
28b9fea4e7
commit
7e6c947e4b
3 changed files with 3 additions and 2 deletions
|
@ -231,6 +231,7 @@ setup_interface() {
|
|||
# Interface settings
|
||||
config_get mtu "$config" mtu
|
||||
config_get macaddr "$config" macaddr
|
||||
macaddr="${macaddr:-$3}"
|
||||
grep "$iface:" /proc/net/dev > /dev/null && \
|
||||
$DEBUG ifconfig "$iface" down && \
|
||||
$DEBUG ifconfig "$iface" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} up
|
||||
|
|
|
@ -70,7 +70,7 @@ start_net() {(
|
|||
[ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/${iface}.pid)" 2>/dev/null
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
setup_interface "$1" "$2"
|
||||
setup_interface "$1" "$2" "$3"
|
||||
)}
|
||||
|
||||
set_wifi_up() {
|
||||
|
|
|
@ -251,8 +251,8 @@ enable_broadcom() {
|
|||
net_cfg="$(find_net_config "$vif")"
|
||||
[ -z "$net_cfg" ] || {
|
||||
bridge="$(bridge_interface "$net_cfg")"
|
||||
append if_up "start_net '$ifname' '$net_cfg'" ";$N"
|
||||
append if_up "set_wifi_up '$vif' '$ifname'" ";$N"
|
||||
append if_up "start_net '$ifname' '$net_cfg' \$(wlc ifname '$ifname' bssid)" ";$N"
|
||||
}
|
||||
[ -z "$nasopts" ] || {
|
||||
eval "${vif}_ssid=\"\$ssid\""
|
||||
|
|
Loading…
Reference in a new issue