summaryrefslogtreecommitdiff
path: root/package/kernel/mac80211
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/mac80211
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/mac80211')
-rw-r--r--package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index c9bc3d6..2a8d2f9 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -486,7 +486,7 @@ mac80211_prepare_vif() {
# All interfaces must have unique mac addresses
# which can either be explicitly set in the device
# section, or automatically generated
- ifconfig "$ifname" hw ether "$macaddr"
+ ip link set dev "$ifname" address "$macaddr"
fi
json_select ..
@@ -582,7 +582,7 @@ mac80211_setup_vif() {
json_get_vars mode
json_get_var vif_txpower txpower
- ifconfig "$ifname" up || {
+ ip link set dev "$ifname" up || {
wireless_setup_vif_failed IFUP_ERROR
json_select ..
return
@@ -638,7 +638,7 @@ mac80211_interface_cleanup() {
local phy="$1"
for wdev in $(list_phy_interfaces "$phy"); do
- ifconfig "$wdev" down 2>/dev/null
+ ip link set dev "$wdev" down 2>/dev/null
iw dev "$wdev" del
done
}