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)
commit79750ac4257763ff595a8b2cdc7ba580f0b0c8e0
tree74db3f8b7b05dab596823df104536d959c913736
parentab40ff7508d2f54ed03b99523493c46250649c52
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