]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: header_ops: fix frame control setting
authorAlexander Aring <alex.aring@gmail.com>
Fri, 18 Sep 2015 09:30:41 +0000 (11:30 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 Sep 2015 09:51:20 +0000 (11:51 +0200)
commit86055b852abd8cfae28394fcd790fc17c5b9b31b
tree57a76f73c329752f9543ae151ec6a45a969ec29d
parent2b65e2dad7a4c6074042cea810d27b7d974c4726
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>
include/net/ieee802154_netdev.h
net/ieee802154/header_ops.c