Skip to content

Commit 1b5c590

Browse files
D-Trivenikartben
authored andcommitted
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 <[email protected]>
1 parent 336c650 commit 1b5c590

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/wifi/nrf_wifi/src/wifi_mgmt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,8 @@ void nrf_wifi_event_proc_twt_setup_zep(void *vif_ctx,
620620
unsigned int event_len)
621621
{
622622
struct nrf_wifi_vif_ctx_zep *vif_ctx_zep = NULL;
623-
struct wifi_twt_params twt_params;
624-
struct twt_interval_float twt_interval_fp;
623+
struct wifi_twt_params twt_params = { 0 };
624+
struct twt_interval_float twt_interval_fp = { 0 };
625625

626626
if (!vif_ctx || !twt_setup_info) {
627627
return;

0 commit comments

Comments
 (0)