[Linux-zigbee-devel] mrf24j40 on BeagleBoneBlack Production Image 2013.06.20 Incompatible with baseboard for 'BB-BONE-MRF24J40'

2013-07-14 Thread Craig Peacock
I'm running a BeagleBoneBlack with the lastest production image 2013.06.20 If I manually load the MRF24J40 DTBO fragment I get an error suggesting it is incompatible with my baseboard (I assume the beagle bone black) : root@beaglebone:~# echo BB-BONE-MRF24J40 > /sys/devices/bone_capemgr.8/slots

[Linux-zigbee-devel] [PATCH 5/7] 6lowpan: use _saddr and _daddr instead of skb data

2013-07-14 Thread Alexander Aring
Pointers _saddr and _daddr points to source and destination address. Use this for a link-layer compression to get these addresses. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ie

[Linux-zigbee-devel] [PATCH 3/7] 6lowpan: init 6lowpan header and ipv6hdr to zero

2013-07-14 Thread Alexander Aring
When we set it to zero, we can assume that the memory is already zero while parsing. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 8e0fbb8..fd0a5bc 1006

[Linux-zigbee-devel] [PATCHv2 0/7] minor fixes

2013-07-14 Thread Alexander Aring
This patch series is currently work in process by me. There is also a known issue with the payload calculation for fragmented 6lowpan pakets. I rework the uncompress_address function. The point is that the uncompression of a non-multicast address and multicast address is very different, so I spl

[Linux-zigbee-devel] [PATCH 7/7] 6lowpan: lowpan_uncompress_addr with address_mode

2013-07-14 Thread Alexander Aring
This patch drop the pre and postcount calculation from the lowpan_uncompress_addr function. We use instead a switch case over address_mode value, it's easier to understand what's going on there. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 123 ++

[Linux-zigbee-devel] [PATCH 1/7] 6lowpan: fix small comment issue

2013-07-14 Thread Alexander Aring
Fix a little comment issue. Number 2 is 10 in bits and 1 is 01. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 55e1fd5..1ec14ef 100644 --- a/net/ieee8021

[Linux-zigbee-devel] [PATCH 2/7] 6lowpan: fix return value with comment operator

2013-07-14 Thread Alexander Aring
Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 1ec14ef..8e0fbb8 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -819,7 +819,8 @@ low

[Linux-zigbee-devel] [PATCH 4/7] 6lowpan: remove setting some memory regions to zero

2013-07-14 Thread Alexander Aring
While we can assume that the memory is already be zero, we can drop some memsets while parsing. Signed-off-by: Alexander Aring --- net/ieee802154/6lowpan.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index fd0a5bc..f3406dac 1

[Linux-zigbee-devel] [PATCH 6/7] 6lowpan: add function to uncompress multicast addr

2013-07-14 Thread Alexander Aring
Add function to uncompress multicast address. This function split the uncompress function for a multicast address in a seperate function. To uncompress a multicast address is different than a other non-multicasts addresses according to rfc6292. Signed-off-by: Alexander Aring --- net/ieee802154/

Re: [Linux-zigbee-devel] [PATCH 6/7] 6lowpan: add function to uncompress multicast addr

2013-07-14 Thread Alexander Aring
On Sun, Jul 14, 2013 at 08:29:51PM +0200, Alexander Aring wrote: > Add function to uncompress multicast address. > This function split the uncompress function for a multicast address > in a seperate function. > > To uncompress a multicast address is different than a other > non-multicasts address