mac80211: fix wifi teardown
reverts part of the recent wifi reconf patch. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -1041,10 +1041,12 @@ list_phy_interfaces() { | |||||||
| drv_mac80211_teardown() { | drv_mac80211_teardown() { | ||||||
| 	wireless_process_kill_all | 	wireless_process_kill_all | ||||||
|  |  | ||||||
| 	for phy in $(ls /sys/class/ieee80211/); do | 	json_select data | ||||||
| 		mac80211_interface_cleanup "$phy" | 	json_get_vars phy | ||||||
| 		uci -q -P /var/state revert wireless._${phy} | 	json_select .. | ||||||
| 	done |  | ||||||
|  | 	mac80211_interface_cleanup "$phy" | ||||||
|  | 	uci -q -P /var/state revert wireless._${phy} | ||||||
| } | } | ||||||
|  |  | ||||||
| add_driver mac80211 | add_driver mac80211 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin