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
Loading
Please register or sign in to comment