diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-11-09 17:05:15 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-11-09 17:05:15 +0000 |
commit | 3838a450e552f36356a3c6ffd660a966487b69b0 (patch) | |
tree | ccac7e84347efac3293a2b4b8a9421ded3d880a2 | |
parent | 459f9b3780508d60931c816f89cfea7d0e3ea093 (diff) | |
download | upstream-3838a450e552f36356a3c6ffd660a966487b69b0.tar.gz upstream-3838a450e552f36356a3c6ffd660a966487b69b0.tar.bz2 upstream-3838a450e552f36356a3c6ffd660a966487b69b0.zip |
Allow setting the MAC address on a broadcom device (#1512)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13154 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/broadcom-wl/files/lib/wifi/broadcom.sh | 2 |
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" ] || { |