Skip to content

Commit

Permalink
[nrf fromlist] drivers: nrf_wifi: Initialize TWT response parameters …
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
D-Triveni committed Dec 17, 2024
1 parent 9edbdaf commit d807647
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 };

Check notice on line 625 in drivers/wifi/nrf_wifi/src/wifi_mgmt.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

You may want to run clang-format on this change

drivers/wifi/nrf_wifi/src/wifi_mgmt.c:625 - struct wifi_twt_params twt_params = { 0 }; - struct twt_interval_float twt_interval_fp = { 0 }; + 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 d807647

Please sign in to comment.