ieee802154: hwsim: Introduce a helper to update all the PIB attributes
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 19 Oct 2022 13:44:21 +0000 (15:44 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Mon, 24 Oct 2022 07:33:35 +0000 (09:33 +0200)
commit9a60850e8cd9160beba79aa6d529332eb18c9bc7
tree1b8621dc7d181380f1d31f98906d787c830cb844
parentf8be91fbfc7dd2d69762d510cc29c3b52d3ef4db
ieee802154: hwsim: Introduce a helper to update all the PIB attributes

Perform the update of the PIB structure only in a single place. This way
we can have much simpler functions when updating the page, channel or
address filters. This helper will become even more useful when we will
update the ->set_promiscuous() callback to actually save the filtering
level in the PIB structure.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20221019134423.877169-2-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/mac802154_hwsim.c