Skip to content

Commit

Permalink
[noup] wpa_supplicant: Fix unused variable warning
Browse files Browse the repository at this point in the history
In Zephyr the debug macros compile out code, so, the variables have to
be compiled out too.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 authored and jukkar committed Oct 24, 2024
1 parent 9f56fa6 commit 4428531
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wpa_supplicant/wpa_supplicant.c
Original file line number Diff line number Diff line change
Expand Up @@ -8229,9 +8229,11 @@ void dump_freq_data(struct wpa_supplicant *wpa_s, const char *title,
wpa_dbg(wpa_s, MSG_DEBUG, "Shared frequencies (len=%u): %s",
len, title);
for (i = 0; i < len; i++) {
#if CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_LEVEL <= MSG_DEBUG
struct wpa_used_freq_data *cur = &freqs_data[i];
wpa_dbg(wpa_s, MSG_DEBUG, "freq[%u]: %d, flags=0x%X",
i, cur->freq, cur->flags);
#endif /* CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_LEVEL <= MSG_DEBUG */
}
}

Expand Down

0 comments on commit 4428531

Please sign in to comment.