summaryrefslogtreecommitdiff
path: root/package/kernel/broadcom-wl/files/lib
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2015-09-08 17:44:24 +0000
committerSteven Barth <cyrus@openwrt.org>2015-09-08 17:44:24 +0000
commite07959cade0eba1c85a76d76a1a673363c9f55fb (patch)
treea67502d0f73e9016128f70254b142e3326663423 /package/kernel/broadcom-wl/files/lib
parent579fe7f52ab6c6d6ec6087901f8e5514cea4b4e8 (diff)
downloadmtk-20170518-e07959cade0eba1c85a76d76a1a673363c9f55fb.zip
mtk-20170518-e07959cade0eba1c85a76d76a1a673363c9f55fb.tar.gz
mtk-20170518-e07959cade0eba1c85a76d76a1a673363c9f55fb.tar.bz2
package: replace ifconfig-usage with ip
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46832
Diffstat (limited to 'package/kernel/broadcom-wl/files/lib')
-rw-r--r--package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
index 859fca1..a9c4de2 100644
--- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -101,7 +101,7 @@ disable_broadcom() {
for dev in /sys/class/net/wds${device##wl}-* /sys/class/net/${device}-* /sys/class/net/${device}; do
if [ -e "$dev" ]; then
ifname=${dev##/sys/class/net/}
- ifconfig "$ifname" down
+ ip link set dev "$ifname" down
unbridge "$ifname"
fi
done
@@ -372,8 +372,8 @@ enable_broadcom() {
local if_cmd="if_pre_up"
[ "$ifname" != "${ifname##${device}-}" ] && if_cmd="if_up"
append $if_cmd "macaddr=\$(wlc ifname '$ifname' cur_etheraddr)" ";$N"
- append $if_cmd "ifconfig '$ifname' \${macaddr:+hw ether \$macaddr}" ";$N"
- append if_up "ifconfig '$ifname' up" ";$N"
+ append $if_cmd "ip link set dev '$ifname' address \$macaddr" ";$N"
+ append if_up "ip link set dev '$ifname' up" ";$N"
local net_cfg="$(find_net_config "$vif")"
[ -z "$net_cfg" ] || {