drivers: nrf_wifi: Initialize TWT response parameters to zero

Set TWT response parameters to zero to avoid
uninitialized values and ensure correct behavior.

Signed-off-by: Triveni Danda <triveni.danda@nordicsemi.no>
This commit is contained in:
Triveni Danda 2024-12-12 13:11:13 +05:30 committed by Benjamin Cabé
commit 1b5c590ae8

View file

@ -620,8 +620,8 @@ void nrf_wifi_event_proc_twt_setup_zep(void *vif_ctx,
unsigned int event_len)
{
struct nrf_wifi_vif_ctx_zep *vif_ctx_zep = NULL;
struct wifi_twt_params twt_params;
struct twt_interval_float twt_interval_fp;
struct wifi_twt_params twt_params = { 0 };
struct twt_interval_float twt_interval_fp = { 0 };
if (!vif_ctx || !twt_setup_info) {
return;