6loWPAN: Correct a couple of tiny but fatal bugs.
This commit is contained in:
parent
7cb34d969d
commit
cc9445624f
@ -294,7 +294,7 @@ static void sixlowpan_setup_params(FAR struct ieee802154_driver_s *ieee,
|
||||
|
||||
/* Initialize all prameters to all zero */
|
||||
|
||||
memset(¶ms, 0, sizeof(params));
|
||||
memset(params, 0, sizeof(params));
|
||||
|
||||
/* Reset to an empty frame */
|
||||
|
||||
|
@ -149,7 +149,7 @@ void sixlowpan_rimefromip(const net_ipv6addr_t ipaddr,
|
||||
{
|
||||
/* REVISIT: See notes about 2 byte addresses in sixlowpan_ipfromrime() */
|
||||
|
||||
DEBUGASSERT(ipaddr[0] == 0xfe80);
|
||||
DEBUGASSERT(ipaddr[0] == HTONS(0xfe80));
|
||||
|
||||
memcpy(rime, &ipaddr[4], CONFIG_NET_6LOWPAN_RIMEADDR_SIZE);
|
||||
rime->u8[0] ^= 0x02;
|
||||
|
Loading…
Reference in New Issue
Block a user