Skip to content

Commit

Permalink
drivers: nrf_wifi: Initialize TWT response parameters to zero
Browse files Browse the repository at this point in the history
Set TWT response parameters to zero to avoid
uninitialized values and ensure correct behavior.

Signed-off-by: Triveni Danda <[email protected]>
  • Loading branch information
D-Triveni committed Dec 12, 2024
1 parent 7c4abb1 commit 38e57de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/wifi/nrf_wifi/src/wifi_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,9 @@ void nrf_wifi_event_proc_twt_setup_zep(void *vif_ctx,

vif_ctx_zep = vif_ctx;

memset(&twt_params, 0, sizeof(struct wifi_twt_params));
memset(&twt_interval_fp, 0, sizeof(struct twt_interval_float));

twt_params.operation = WIFI_TWT_SETUP;
twt_params.flow_id = twt_setup_info->info.twt_flow_id;
twt_params.negotiation_type = twt_rpu_to_wifi_mgmt_neg_type(twt_setup_info->info.neg_type);
Expand Down

0 comments on commit 38e57de

Please sign in to comment.