Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 49343afb authored by Gidon Studinski's avatar Gidon Studinski
Browse files

wigig_sensing: enforce data read in multiple of burst size



In case user space application requests for data size which is not a
multiple of the burst size and there is enough data in the drivers internal
buffer, a partial burst may be read by the application, which may cause
loss of burst boundary.

This patch fixes the above. In case the application supplies a buffer which
is smaller than the burst size, an error is returned to the application.

Change-Id: I5233476d99937dd1a13ceaec625588414a1dc04a
Signed-off-by: default avatarGidon Studinski <gidons@codeaurora.org>
parent e29b2de8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment