From: Alan Ott Date: Mon, 18 Mar 2013 12:06:43 +0000 (+0000) Subject: mrf24j40: Fix byte-order of IEEE address X-Git-Tag: MMI-PSA29.97-13-9~14469^2~427 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=119c331f166ab1c55ac40c9840d180dac91f0cff;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mrf24j40: Fix byte-order of IEEE address Load the 64-bit Extended (IEEE) address into the hardware in the proper byte order. Signed-off-by: Alan Ott Signed-off-by: David S. Miller --- diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c index b4f9b67b0877..0ca8f88ac538 100644 --- a/drivers/net/ieee802154/mrf24j40.c +++ b/drivers/net/ieee802154/mrf24j40.c @@ -478,7 +478,7 @@ static int mrf24j40_filter(struct ieee802154_dev *dev, int i; for (i = 0; i < 8; i++) write_short_reg(devrec, REG_EADR0+i, - filt->ieee_addr[i]); + filt->ieee_addr[7-i]); #ifdef DEBUG printk(KERN_DEBUG "Set long addr to: ");