mrf24j40: avoid uninitialized byte in SPI transfer to radio.
authorWalter Mack <wmack@componentsw.com>
Tue, 12 Jul 2016 03:02:16 +0000 (20:02 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 12 Jul 2016 09:54:53 +0000 (11:54 +0200)
commit3faf56437239326113a3c4b99ab8204e2b09c2e4
tree0dc7508fbc51b3931c81e5e5b5bf48f37604ebf0
parent12d868964f7352e8b18e755488f7265a93431de1
mrf24j40: avoid uninitialized byte in SPI transfer to radio.

isr function issues SPI read command to mrf to obtain INTSTAT.
SPI transfer is 2 bytes, but value of 2nd byte is not defined.
This had the effect that only the first ISR worked as intended. The
second ISR read incorrect INTSTAT values. Observed on Raspberry PI B+.

Signed-off-by: Walter Mack <wmack@componentsw.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/mrf24j40.c