eiwd

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

commit aa7845ca98d3b5d1116f8d495c7f629298c9e90a
parent 317e345a6aff01711c7909d0189470358575edc8
Author: Alvin Šipraga <alsi@bang-olufsen.dk>
Date:   Thu,  5 Aug 2021 17:40:24 +0200

netdev: update frequency on channel switch events

While we correctly emit a NETDEV_EVENT_CHANNEL_SWITCHED event from
netdev for other modules to respond to, we fail to actually update the
frequency of the netdev object in question. Since the netdev frequency
is used elsewhere (e.g. to send action frames), it needs updating too.

Fixes: 5eb0b7ca8e04 ("netdev: add a channel switch event")

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

diff --git a/src/netdev.c b/src/netdev.c @@ -4710,6 +4710,8 @@ static void netdev_channel_switch_event(struct l_genl_msg *msg, l_debug("Channel switch event, frequency: %u", *freq); + netdev->frequency = *freq; + if (!netdev->event_filter) return;