merge r15028 to 8.09 (close: #4777)
authorNicolas Thill <nico@openwrt.org>
Fri, 10 Apr 2009 12:48:24 +0000 (12:48 +0000)
committerNicolas Thill <nico@openwrt.org>
Fri, 10 Apr 2009 12:48:24 +0000 (12:48 +0000)
SVN-Revision: 15200

package/base-files/Makefile
package/base-files/files/lib/network/config.sh
package/base-files/files/sbin/wifi
package/broadcom-wl/Makefile
package/broadcom-wl/files/lib/wifi/broadcom.sh

index 2b50027a100f746b4dd8d998d36e443ef2d1d3d6..96b113d2db75512c952baf8c99874332079da090 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2007 OpenWrt.org
+# Copyright (C) 2007-2009 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=14
+PKG_RELEASE:=15
 
 PKG_FILE_DEPEND:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 
index 3a3724706ef3a1e7e6c8d963ec81732083014420..f781f4b737c80a08d12cd4ed9f058c76891b8798 100755 (executable)
@@ -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
index e9752c60393709f18f9246a8f4fadc7fde589b28..30ecb1b77c748d141b79105662a776a2fb916cc7 100755 (executable)
@@ -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() {
index e49fc50a880b3eb7d31e72827178c182f6f5b150..d7d07dc8c3d161081990ef34da6b19e1a2ff4f3d 100644 (file)
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=broadcom-wl
 PKG_VERSION:=4.150.10.5.3
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 WLC_VERSION:=0.1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
index 912e6d750aa550a8662c9abdddbd95dc34d99e55..87ce9680bbbb0ec228fcc818db706fc2e32d40a8 100644 (file)
@@ -249,8 +249,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\""