diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-01-25 13:25:38 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2022-01-28 11:23:08 +0100 |
commit | 9d70c7e10a8953477956570cd4eba14ad404d8a7 (patch) | |
tree | 2045a6e3851ffbe438ea3f17d15398e7ba82f8b7 /drivers | |
parent | ieee802154: atusb: move to new USB API (diff) | |
download | linux-9d70c7e10a8953477956570cd4eba14ad404d8a7.tar.xz linux-9d70c7e10a8953477956570cd4eba14ad404d8a7.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ieee802154/mac802154_hwsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/mac802154_hwsim.c b/drivers/net/ieee802154/mac802154_hwsim.c index 8caa61ec718f..62ced7a30d92 100644 --- a/drivers/net/ieee802154/mac802154_hwsim.c +++ b/drivers/net/ieee802154/mac802154_hwsim.c @@ -790,7 +790,7 @@ static int hwsim_add_one(struct genl_info *info, struct device *dev, phy->idx = idx; INIT_LIST_HEAD(&phy->edges); - hw->flags = IEEE802154_HW_PROMISCUOUS; + hw->flags = IEEE802154_HW_PROMISCUOUS | IEEE802154_HW_RX_DROP_BAD_CKSUM; hw->parent = dev; err = ieee802154_register_hw(hw); |