wireless/bluetooth: fix build break if NET_6LOWPAN enabled
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
963feca4a1
commit
ef2097e439
|
@ -406,11 +406,11 @@ static void btnet_l2cap_receive(FAR struct bt_conn_s *conn,
|
||||||
* io_offset should be a valid IPHC header.
|
* io_offset should be a valid IPHC header.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((iob->io_data[iob->io_offset] & SIXLOWPAN_DISPATCH_NALP_MASK) ==
|
if ((frame->io_data[frame->io_offset] &
|
||||||
SIXLOWPAN_DISPATCH_NALP)
|
SIXLOWPAN_DISPATCH_NALP_MASK) == SIXLOWPAN_DISPATCH_NALP)
|
||||||
{
|
{
|
||||||
wlwarn("WARNING: Dropped... Not a 6LoWPAN frame: %02x\n",
|
wlwarn("WARNING: Dropped... Not a 6LoWPAN frame: %02x\n",
|
||||||
iob->io_data[iob->io_offset]);
|
frame->io_data[frame->io_offset]);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -421,7 +421,7 @@ static void btnet_l2cap_receive(FAR struct bt_conn_s *conn,
|
||||||
|
|
||||||
/* And give the packet to 6LoWPAN */
|
/* And give the packet to 6LoWPAN */
|
||||||
|
|
||||||
ret = sixlowpan_input(&priv->bd_dev, iob, (FAR void *)meta);
|
ret = sixlowpan_input(&priv->bd_dev, frame, (FAR void *)&meta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue