mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-10-05 19:08:52 +02:00
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:
parent
317e345a6a
commit
aa7845ca98
@ -4710,6 +4710,8 @@ static void netdev_channel_switch_event(struct l_genl_msg *msg,
|
|||||||
|
|
||||||
l_debug("Channel switch event, frequency: %u", *freq);
|
l_debug("Channel switch event, frequency: %u", *freq);
|
||||||
|
|
||||||
|
netdev->frequency = *freq;
|
||||||
|
|
||||||
if (!netdev->event_filter)
|
if (!netdev->event_filter)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user