aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-11-09 17:05:15 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-11-09 17:05:15 +0000
commit9c97f76e21e4ba9a622eb2d1763557d0eea4535c (patch)
tree322ab4818c46e48353628b825d73c1049ba7705f
parentd4f01c8c2f00eb952a7b5983eca24fd8990a50b9 (diff)
downloadupstream-9c97f76e21e4ba9a622eb2d1763557d0eea4535c.tar.gz
upstream-9c97f76e21e4ba9a622eb2d1763557d0eea4535c.tar.bz2
upstream-9c97f76e21e4ba9a622eb2d1763557d0eea4535c.zip
Allow setting the MAC address on a broadcom device (#1512)
SVN-Revision: 13154
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index ece3a69613..e60674a497 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -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" ] || {