mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 22:00:19 +00:00
Fix bug in reading IEEE 802.15.4 Extended Address from a MAC header. (#201)
This commit is contained in:
@@ -259,9 +259,9 @@ static inline void getExtAddress(const uint8_t *frame, otExtAddress *address)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < sizeof(address); i++)
|
||||
for (i = 0; i < sizeof(otExtAddress); i++)
|
||||
{
|
||||
address->m8[i] = frame[IEEE802154_DSTADDR_OFFSET + (7 - i)];
|
||||
address->m8[i] = frame[IEEE802154_DSTADDR_OFFSET + (sizeof(otExtAddress) - 1 - i)];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user