]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: ieee802154: hwsim: Ensure proper channel selection at probe time
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 25 Jan 2022 12:14:21 +0000 (13:14 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 29 Mar 2022 07:14:01 +0000 (09:14 +0200)
commiteda60555136f9997798db6a8967cd29e419312b6
tree6460d0b492ae6cf9d45fe6ee51d4cd61373fde32
parentbd48d2525d2492fa9be22735e9c31a385c40c674
net: ieee802154: hwsim: Ensure proper channel selection at probe time

BugLink: https://bugs.launchpad.net/bugs/1964634
commit 1293fccc9e892712d910ec96079d3717307f1d2d upstream.

Drivers are expected to set the PHY current_channel and current_page
according to their default state. The hwsim driver is advertising being
configured on channel 13 by default but that is not reflected in its own
internal pib structure. In order to ensure that this driver consider the
current channel as being 13 internally, we at least need to set the
pib->channel field to 13.

Fixes: f25da51fdc38 ("ieee802154: hwsim: add replacement for fakelb")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
[stefan@datenfreihafen.org: fixed assigment from page to channel]
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20220125121426.848337-2-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ieee802154/mac802154_hwsim.c