diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-10-19 15:44:22 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2022-10-24 09:34:02 +0200 |
commit | 19177eedcf4412a90ec1ebaffac3514d0a3b4ff2 (patch) | |
tree | b1e0bbdb2cf205c146742d7121aeb3b836c8f275 /net/mac802154 | |
parent | ieee802154: hwsim: Introduce a helper to update all the PIB attributes (diff) | |
download | linux-19177eedcf4412a90ec1ebaffac3514d0a3b4ff2.tar.xz linux-19177eedcf4412a90ec1ebaffac3514d0a3b4ff2.zip |
ieee802154: hwsim: Save the current filtering level and use it
Save the requested filtering level in the ->set_promiscuous()
helper. The logic is: either we want to enable promiscuous mode and we
want to disable filters entirely, or we want to use the highest
filtering level by default. This is of course an assumption that only
works today, but if in the future intermediate levels (such as scan
filtering level) are implemented in the core, this logic will need to be
updated. This would imply replacing ->set_promiscuous() by something
more fine grained anyway, so we are probably safe with this assumption.
Once saved in the PIB structure, we can use this value instead of trying
to access the PHY structure to know what hardware filtering level has
been advertised.
Suggested-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20221019134423.877169-3-miquel.raynal@bootlin.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'net/mac802154')
0 files changed, 0 insertions, 0 deletions