diag: Disable all log masks when receive disable command
When diag receives the command to diable all log masks,
disable all log masks, and pass all log code updates to
the appropriate processors.
CRs-Fixed: 357355
Change-Id: Ied1e5a3ff7d79f477a8f3ef3dfe4343cbd5972a7
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
diff --git a/drivers/char/diag/diagfwd.c b/drivers/char/diag/diagfwd.c
index 4726da1..4d3fc29 100644
--- a/drivers/char/diag/diagfwd.c
+++ b/drivers/char/diag/diagfwd.c
@@ -962,7 +962,6 @@
#endif
} /* Disable log masks */
else if (*buf == 0x73 && *(int *)(buf+4) == 0) {
- buf += 8;
/* Disable mask for each log code */
diag_disable_log_mask();
diag_update_userspace_clients(LOG_MASKS_TYPE);
@@ -975,17 +974,16 @@
*(int *)(driver->apps_rsp_buf + 4) = 0x0;
if (driver->ch_cntl)
diag_send_log_mask_update(driver->ch_cntl,
- *(int *)buf);
+ ALL_EQUIP_ID);
if (driver->chqdsp_cntl)
diag_send_log_mask_update(driver->chqdsp_cntl,
- *(int *)buf);
+ ALL_EQUIP_ID);
if (driver->ch_wcnss_cntl)
diag_send_log_mask_update(driver->ch_wcnss_cntl,
- *(int *)buf);
+ ALL_EQUIP_ID);
ENCODE_RSP_AND_SEND(7);
return 0;
- } else
- buf = temp;
+ }
#endif
} /* Set runtime message mask */
else if ((*buf == 0x7d) && (*(buf+1) == 0x4)) {