eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 65073ffcfa1ef67c4c69d0b697bbcc0e96c138e7
parent d0b9fc84b561b7c7116987ef1871de1f1a5d20de
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 24 Oct 2024 09:46:35 -0700

util: warn on invalid channels when iterating a frequency set

This should not happen but if it does we should alert the user.

Diffstat:
Msrc/util.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/util.c b/src/util.c @@ -464,6 +464,11 @@ static void scan_channels_foreach(uint32_t channel, void *user_data) uint32_t freq; freq = band_channel_to_freq(channel, channels_data->band); + if (!freq) { + l_warn("invalid channel %u for band %u", channel, + channels_data->band); + return; + } channels_data->func(freq, channels_data->user_data); }