Thread (5 messages) flat view 5 messages, 2 authors, 2022-09-15

Re: [PATCH v2] wcn36xx: Add RX frame SNR as a source of system entropy

From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Date: 2022-09-15 00:14:16
Also in: linux-wireless

On 15/09/2022 00:57, Jason A. Donenfeld wrote:
Won't this break on big endian? Just have an assignment handle it:
Yes but these SoCs are all LE
     u8 snr_sample = snr & 0xff;
     add_device_randomness(&snr_sample, sizeof(snr_sample);

That & 0xff is redundant, but it doesn't hurt to be explicit.
Sure NP I'll v3 it.

---
bod
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help