eiwd

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

commit acc5daf0e21c4683fe8c68c739e138cd0fdde27c
parent 5c22ab662137745d09442f13e240de7a860f951c
Author: James Prestwood <prestwoj@gmail.com>
Date:   Fri, 20 Sep 2024 06:55:36 -0700

netdev: allow empty TX/RX bitrate attributes

The TX or RX bitrate attributes can contain zero nested attributes.
This causes netdev_parse_bitrate() to fail, but this shouldn't then
cause the overall parsing to fail (we just don't have those values).

Fix this by continuing to parse attributes if either the TX/RX
bitrates fail to parse.

Diffstat:
Msrc/netdev.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/netdev.c b/src/netdev.c @@ -602,7 +602,7 @@ static bool netdev_parse_sta_info(struct l_genl_attr *attr, if (!netdev_parse_bitrate(&nested, &info->rx_mcs_type, &info->rx_bitrate, &info->rx_mcs)) - return false; + continue; info->have_rx_bitrate = true; @@ -618,7 +618,7 @@ static bool netdev_parse_sta_info(struct l_genl_attr *attr, if (!netdev_parse_bitrate(&nested, &info->tx_mcs_type, &info->tx_bitrate, &info->tx_mcs)) - return false; + continue; info->have_tx_bitrate = true;