From d92215e1c89a486a0e33e3b79795f401b1fd9f5d Mon Sep 17 00:00:00 2001 From: Triveni Danda Date: Thu, 12 Dec 2024 13:11:13 +0530 Subject: [PATCH] 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 --- drivers/wifi/nrf_wifi/src/wifi_mgmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/wifi/nrf_wifi/src/wifi_mgmt.c b/drivers/wifi/nrf_wifi/src/wifi_mgmt.c index 5effb759fa428b..9591ccf772e0c0 100644 --- a/drivers/wifi/nrf_wifi/src/wifi_mgmt.c +++ b/drivers/wifi/nrf_wifi/src/wifi_mgmt.c @@ -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;