]> git.baikalelectronics.ru Git - kernel.git/commit
at86rf230: restore trx len when needed
authorAlexander Aring <alex.aring@gmail.com>
Sun, 1 Mar 2015 20:55:33 +0000 (21:55 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 3 Mar 2015 01:15:25 +0000 (02:15 +0100)
commit95ffa8a7918b9a71e32b98516bced83ea4de7ca4
treec2eb60c48a90f5bf7bc812908ee3e62f046f5321
parent36008671c8c0a0ab715e18f051f1627d941c73bb
at86rf230: restore trx len when needed

In the most cases the spi messages has a length of two. Currently we
always set the the len field to two before transmit a spi message. In
cases for read out/write in the frame buffer we need another len. This
patch use trx len two as default. For the frame buffer cases we restore
the trx len to two on success and failure. This will reduce the len
setting of two when it's already two.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c