]> git.baikalelectronics.ru Git - kernel.git/commit
at86rf230: use ieee802154_is_valid_psdu_len helper
authorAlexander Aring <alex.aring@gmail.com>
Mon, 27 Oct 2014 16:13:41 +0000 (17:13 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 27 Oct 2014 17:07:49 +0000 (18:07 +0100)
commit003ceff537ccdac11e52f248a6bc27ddbdb24854
tree5d17e157409f73aa6738432b6900d295d9ae6d2b
parent1775f46895ed63e6c2bf8f0c39b506e3c5698b1b
at86rf230: use ieee802154_is_valid_psdu_len helper

This patch adds the ieee802154_is_valid_psdu_len function to validate
the psdu length. If the psdu length is invalid we use the maximum
payload to receive also corrupted frames in monitor mode.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c