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)
commit1caf6f476e90f592c2502a82bdef423cf950d011
tree20b5c00b851fc0ff104b92cadb6dbcc07bbca46d
parentd6d244d4df91ee4b468233050542c7482d705e69
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