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 authored and kartben committed Dec 16, 2024
1 parent 336c650 commit 1b5c590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/wifi/nrf_wifi/src/wifi_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1b5c590

Please sign in to comment.