]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: add helpers for frame control checks
authorAlexander Aring <alex.aring@gmail.com>
Mon, 21 Sep 2015 09:24:33 +0000 (11:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 Sep 2015 09:51:22 +0000 (11:51 +0200)
commit157c63021449283ca706405556992e0f07741916
tree74db3f8b7b05dab596823df104536d959c913736
parent2b87cacaf1a232cae2f6cb3a4ad5bfd5db8c55c0
ieee802154: add helpers for frame control checks

This patch introduce two static inline functions. The first to get the
frame control field from an sk_buff. The second is for checking on the
acknowledgment request bit on the frame control field. Later we can
introduce more functions to check on the frame control fields.

These will deprecate the current behaviour which requires a
host-byteorder conversion and manually bit handling.

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/linux/ieee802154.h