Skip to content

Commit 8477dc1

Browse files
committed
[nrf fromlist] drivers: nrf_wifi: Initialize TWT response parameters to zero
Set TWT response parameters to zero to avoid uninitialized values and ensure correct behavior. Upstream PR #: 82909 Signed-off-by: Triveni Danda <[email protected]>
1 parent 6e53c57 commit 8477dc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/wifi/nrf_wifi/src/wifi_mgmt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,9 @@ void nrf_wifi_event_proc_twt_setup_zep(void *vif_ctx,
629629

630630
vif_ctx_zep = vif_ctx;
631631

632+
memset(&twt_params, 0, sizeof(struct wifi_twt_params));
633+
memset(&twt_interval_fp, 0, sizeof(struct twt_interval_float));
634+
632635
twt_params.operation = WIFI_TWT_SETUP;
633636
twt_params.flow_id = twt_setup_info->info.twt_flow_id;
634637
twt_params.negotiation_type = twt_rpu_to_wifi_mgmt_neg_type(twt_setup_info->info.neg_type);

0 commit comments

Comments
 (0)