]> git.baikalelectronics.ru Git - 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 Schmidt <stefan@datenfreihafen.org>
Thu, 27 Jan 2022 07:18:54 +0000 (08:18 +0100)
commit91d2b03149b3537395225a667fa61f3a7e00a6ae
tree5390e99f3633f8f4bc42ef46287d5f2d304cf769
parent0678ea65299c03cff79b4a14b76cd22097faa16d
net: ieee802154: hwsim: Ensure proper channel selection at probe time

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: 460b91803f21 ("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>
drivers/net/ieee802154/mac802154_hwsim.c