From: Alvin Šipraga <alsi(a)bang-olufsen.dk>
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")
---
src/netdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/netdev.c b/src/netdev.c
index d7182d64b0e0..aec0dcf8d75f 100644
--- 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;
--
2.32.0
Show replies by date