diff --git a/core/mac/src/pe/lim/lim_security_utils.c b/core/mac/src/pe/lim/lim_security_utils.c index c76ce191cb10..a88292212062 100644 --- a/core/mac/src/pe/lim/lim_security_utils.c +++ b/core/mac/src/pe/lim/lim_security_utils.c @@ -521,6 +521,7 @@ lim_encrypt_auth_frame(struct mac_context *mac, uint8_t keyId, uint8_t *pKey, * Make sure that IV is non-zero, because few IOT APs fails to decrypt * auth sequence 3 encrypted frames if initialization vector value is 0 */ + qdf_get_random_bytes(seed, SIR_MAC_WEP_IV_LENGTH); while (!(*(uint32_t *)seed)) qdf_get_random_bytes(seed, SIR_MAC_WEP_IV_LENGTH);