wireless: call an initial cleanup function
[project/netifd.git] / scripts / netifd-wireless.sh
index e26cea5..7ae3695 100644 (file)
@@ -297,6 +297,8 @@ init_wireless_driver() {
        case "$cmd" in
                dump)
                        add_driver() {
+                               eval "drv_$1_cleanup"
+
                                json_init
                                json_add_string name "$1"