These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / net / wireless / ti / wl18xx / acx.c
index 67f2a0e..4be0409 100644 (file)
@@ -282,3 +282,30 @@ out:
        kfree(acx);
        return ret;
 }
+
+int wl18xx_acx_dynamic_fw_traces(struct wl1271 *wl)
+{
+       struct acx_dynamic_fw_traces_cfg *acx;
+       int ret;
+
+       wl1271_debug(DEBUG_ACX, "acx dynamic fw traces config %d",
+                    wl->dynamic_fw_traces);
+
+       acx = kzalloc(sizeof(*acx), GFP_KERNEL);
+       if (!acx) {
+               ret = -ENOMEM;
+               goto out;
+       }
+
+       acx->dynamic_fw_traces = cpu_to_le32(wl->dynamic_fw_traces);
+
+       ret = wl1271_cmd_configure(wl, ACX_DYNAMIC_TRACES_CFG,
+                                  acx, sizeof(*acx));
+       if (ret < 0) {
+               wl1271_warning("acx config dynamic fw traces failed: %d", ret);
+               goto out;
+       }
+out:
+       kfree(acx);
+       return ret;
+}