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: 5eb0b7ca8e ("netdev: add a channel switch event")
This commit is contained in:
Alvin Šipraga 2021-08-05 17:40:24 +02:00 committed by Denis Kenzior
parent 317e345a6a
commit aa7845ca98
1 changed files with 2 additions and 0 deletions

View File

@ -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;