diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-09-18 11:30:41 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-22 11:51:20 +0200 |
commit | a1da67b8117ddbe88c770b48b5b1527393b8c9c0 (patch) | |
tree | 57a76f73c329752f9543ae151ec6a45a969ec29d /include/net/ieee802154_netdev.h | |
parent | cdd38b219eec2e1b83c0a02d89d372f9656648eb (diff) | |
download | linux-stable-a1da67b8117ddbe88c770b48b5b1527393b8c9c0.tar.gz linux-stable-a1da67b8117ddbe88c770b48b5b1527393b8c9c0.tar.bz2 linux-stable-a1da67b8117ddbe88c770b48b5b1527393b8c9c0.zip |
ieee802154: header_ops: fix frame control setting
Sometimes upper-layer protocols wants to generate a new mac header by
filling "struct ieee802154_hdr" only. These upper-layers sets for the
address settings the source and dest fields, but not the fc fields for
indicate the source and dest address mode. This patch changes the
"ieee802154_hdr_push" function so the fc address fields are set
according the source and dest fields of "struct ieee802154_hdr".
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/ieee802154_netdev.h')
-rw-r--r-- | include/net/ieee802154_netdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h index 2c10a9f0c6d9..95a71bc113b3 100644 --- a/include/net/ieee802154_netdev.h +++ b/include/net/ieee802154_netdev.h @@ -99,7 +99,7 @@ struct ieee802154_hdr { * hdr->fc will be ignored. this includes the INTRA_PAN bit and the frame * version, if SECEN is set. */ -int ieee802154_hdr_push(struct sk_buff *skb, const struct ieee802154_hdr *hdr); +int ieee802154_hdr_push(struct sk_buff *skb, struct ieee802154_hdr *hdr); /* pulls the entire 802.15.4 header off of the skb, including the security * header, and performs pan id decompression |