]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: 6lowpan: set ackreq when needed
authorAlexander Aring <alex.aring@gmail.com>
Tue, 2 Jun 2015 13:55:17 +0000 (15:55 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 2 Jun 2015 15:09:35 +0000 (17:09 +0200)
commit47bb1f40ac397fe7676ca086898f22f27c2ef199
tree20b5c00b851fc0ff104b92cadb6dbcc07bbca46d
parentdf17bac09c7577734411e3f8d6f487aa2bc50112
ieee802154: 6lowpan: set ackreq when needed

This patch sets the acknowledge request bit inside the 802.15.4 mac
header when frame retries is 0 or above. The other frame retries value
which is -1 indicates that the transmitter doesn't care about an
acknowledge frame which will be ignored after transmitting if the node
sends anyway an ack frame after receiving. This is currently unnecessary
traffic if the max frame retries parameter is -1.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/6lowpan/tx.c