net: ieee802154: hwsim: Ensure frame checksum are valid
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 25 Jan 2022 12:25:38 +0000 (13:25 +0100)
committerStefan Schmidt <stefan@datenfreihafen.org>
Fri, 28 Jan 2022 10:23:08 +0000 (11:23 +0100)
commit9d70c7e10a8953477956570cd4eba14ad404d8a7
tree2045a6e3851ffbe438ea3f17d15398e7ba82f8b7
parent416abf4f1891de423cfcc437d4089a1a59c0adf0
net: ieee802154: hwsim: Ensure frame checksum are valid

There is no point in accepting frames with a wrong or missing checksum,
at least not outside of a promiscuous setting. Set the right flag by
default in the hwsim driver to ensure checksums are not ignored.

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