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

Skip to content
Commit c32ffec6 authored by Abhishek Ambure's avatar Abhishek Ambure Committed by snandini
Browse files

qcacld-3.0: Generate the IV and repeat until it is non-zero

If the IV value is zero then some IOT APs fail to decrypt WEP AUTH frame
hence host gets random value of IV using qdf_get_random_bytes().
Presently host checks if the IV is non-zero value in "seed" which is local
uninitialized variable, static analysis tool reports an error "seed array
elements are used uninitiated".
In order to address both these issues, generate the IV using
qdf_get_random_bytes() first and if it is zero, then repeat
invoking qdf_get_random_bytes() until it is non-zero.

Change-Id: Ib211e58ebe21d49ab1dc693ee8a6cad9bfd25ae8
CRs-Fixed: 2775943
parent 423e8de3
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