diff options
author | John Crispin <john@phrozen.org> | 2020-05-30 12:01:08 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2020-05-30 12:01:08 +0200 |
commit | 02f08056bcbc5f014894b7edcea43f2ff822fd90 (patch) | |
tree | 440df17ff4e68563e40926db43714c37702b6d60 | |
parent | c3742ce38c7a58306ce90a1c659fb83b134e84ac (diff) | |
download | upstream-02f08056bcbc5f014894b7edcea43f2ff822fd90.tar.gz upstream-02f08056bcbc5f014894b7edcea43f2ff822fd90.tar.bz2 upstream-02f08056bcbc5f014894b7edcea43f2ff822fd90.zip |
mac80211: fix wifi teardown
reverts part of the recent wifi reconf patch.
Signed-off-by: John Crispin <john@phrozen.org>
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index c184eef641..be637379e3 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -1041,10 +1041,12 @@ list_phy_interfaces() { drv_mac80211_teardown() { wireless_process_kill_all - for phy in $(ls /sys/class/ieee80211/); do - mac80211_interface_cleanup "$phy" - uci -q -P /var/state revert wireless._${phy} - done + json_select data + json_get_vars phy + json_select .. + + mac80211_interface_cleanup "$phy" + uci -q -P /var/state revert wireless._${phy} } add_driver mac80211 |