mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
pd: do not respond to unknown SVDMs
bug fix: if we see an unknown SVDM, do not respond to it. BUG=none BRANCH=samus TEST=test with third party that sends unknown SVDM Change-Id: I3ef6c38be029d57bf3784ba832b7ae137f379049 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/224179 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
5d76ffc62d
commit
647ac36fda
@@ -263,6 +263,8 @@ int pd_svdm(int port, int cnt, uint32_t *payload, uint32_t **rpayload)
|
||||
case CMD_EXIT_MODE:
|
||||
rsize = pd_exit_mode(port, payload);
|
||||
break;
|
||||
default:
|
||||
rsize = 0;
|
||||
}
|
||||
payload[0] &= ~VDO_CMDT(0);
|
||||
payload[0] |= VDO_CMDT(CMDT_INIT);
|
||||
@@ -284,6 +286,8 @@ int pd_svdm(int port, int cnt, uint32_t *payload, uint32_t **rpayload)
|
||||
case CMD_EXIT_MODE:
|
||||
rsize = 0;
|
||||
break;
|
||||
default:
|
||||
rsize = 0;
|
||||
}
|
||||
} else if (cmd_type == CMDT_RSP_NAK) {
|
||||
/* nothing to do */
|
||||
|
||||
Reference in New Issue
Block a user