]> 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)
commit206c96507d614d2b6fff17606f9b2ec0e9ff8d37
tree20b5c00b851fc0ff104b92cadb6dbcc07bbca46d
parent6d0c61e0318f762505d34c9e7bf41f51d899c59b
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