diag: Add additional USB buffer for WCNSS processor
DIAG opens connection with USB to drain traffic generated on
different processors. With 8960, we have a new processor added.
Thus, DIAG-USB connection needs to account for an extra buffer for
traffic generated on this processor.
Signed-off-by: Shalabh Jain <shalabhj@codeaurora.org>
diff --git a/drivers/char/diag/diagfwd.c b/drivers/char/diag/diagfwd.c
index 3dec655..c27e845 100644
--- a/drivers/char/diag/diagfwd.c
+++ b/drivers/char/diag/diagfwd.c
@@ -935,7 +935,8 @@
}
#ifdef CONFIG_DIAG_OVER_USB
-#define N_LEGACY_WRITE (driver->poolsize + 5) /* 2+1 for modem ; 2 for q6 */
+/* 2+1 for modem ; 2 for LPASS ; 1 for WCNSS */
+#define N_LEGACY_WRITE (driver->poolsize + 6)
#define N_LEGACY_READ 1
int diagfwd_connect(void)