fix bug that prevented correct address parsing
This commit is contained in:
parent
c57fd24078
commit
90d31d2666
@ -106,7 +106,7 @@ int ieee802154_addrparse(FAR struct ieee802154_packet_s *packet,
|
|||||||
index += 2; /* skip dest addr */
|
index += 2; /* skip dest addr */
|
||||||
src->ia_len = 2;
|
src->ia_len = 2;
|
||||||
}
|
}
|
||||||
if(saddr == IEEE802154_SADDR_EXT)
|
else if(saddr == IEEE802154_SADDR_EXT)
|
||||||
{
|
{
|
||||||
memcpy(src->ia_eaddr, packet->data+index, 8);
|
memcpy(src->ia_eaddr, packet->data+index, 8);
|
||||||
index += 8; /* skip dest addr */
|
index += 8; /* skip dest addr */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user