Allow setting the MAC address on a broadcom device (#1512)
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 9 Nov 2008 17:05:15 +0000 (17:05 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 9 Nov 2008 17:05:15 +0000 (17:05 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13154 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/broadcom-wl/files/lib/wifi/broadcom.sh

index ece3a69..e60674a 100644 (file)
@@ -122,6 +122,7 @@ enable_broadcom() {
        config_get_bool frameburst "$device" frameburst
        config_get macfilter "$device" macfilter
        config_get maclist "$device" maclist
+       config_get macaddr "$device" macaddr
        local vif_pre_up vif_post_up vif_do_up
 
        _c=0
@@ -234,6 +235,7 @@ enable_broadcom() {
                
                config_get ifname "$vif" ifname
                #append if_up "ifconfig $ifname up" ";$N"
+               [ -z "$macaddr" ] || append if_up "ifconfig $ifname hw ether $macaddr" ";$N"
                local net_cfg bridge
                net_cfg="$(find_net_config "$vif")"
                [ -z "$net_cfg" ] || {
This page took 0.027166 seconds and 4 git commands to generate.