diff options
author | Daniel Golle <daniel@makrotopia.org> | 2019-11-16 15:49:44 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2019-11-16 15:49:54 +0100 |
commit | 50d6e92619545d014639c68ea327cf7c6dd38695 (patch) | |
tree | 3021b22b3bb7f9e268830227a4bc426c28a54b1c /package/kernel | |
parent | f84d6d2f3a84d8694cad8d069f1a6d355f497e0d (diff) | |
download | upstream-50d6e92619545d014639c68ea327cf7c6dd38695.tar.gz upstream-50d6e92619545d014639c68ea327cf7c6dd38695.tar.bz2 upstream-50d6e92619545d014639c68ea327cf7c6dd38695.zip |
Revert "mac80211: restore mac80211_interface_cleanup()"
This reverts commit 000b7687bc50be5b0f1161f4bf8ceb85c495c395.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index 2b8b2d4677..5b174cded6 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -814,13 +814,6 @@ mac80211_interface_cleanup() { mac80211_vap_cleanup hostapd "${primary_ap}" mac80211_vap_cleanup wpa_supplicant "$(uci -q -P /var/state get wireless._${phy}.splist)" - for wdev in $(list_phy_interfaces "$phy"); do - local wdev_phy="$(readlink /sys/class/net/${wdev}/phy80211)" - wdev_phy="$(basename "$wdev_phy")" - [ -n "$wdev_phy" -a "$wdev_phy" != "$phy" ] && continue - ip link set dev "$wdev" down 2>/dev/null - iw dev "$wdev" del - done } mac80211_set_noscan() { @@ -952,15 +945,6 @@ drv_mac80211_setup() { wireless_set_up } -list_phy_interfaces() { - local phy="$1" - if [ -d "/sys/class/ieee80211/${phy}/device/net" ]; then - ls "/sys/class/ieee80211/${phy}/device/net" 2>/dev/null; - else - ls "/sys/class/ieee80211/${phy}/device" 2>/dev/null | grep net: | sed -e 's,net:,,g' - fi -} - drv_mac80211_teardown() { wireless_process_kill_all |