From ef2097e43963f692304885f297f89f9bf998ed25 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Mon, 7 Feb 2022 17:13:27 +0800 Subject: [PATCH] wireless/bluetooth: fix build break if NET_6LOWPAN enabled Signed-off-by: chao.an --- wireless/bluetooth/bt_netdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wireless/bluetooth/bt_netdev.c b/wireless/bluetooth/bt_netdev.c index 9569c4bd80..684e686e3b 100644 --- a/wireless/bluetooth/bt_netdev.c +++ b/wireless/bluetooth/bt_netdev.c @@ -406,11 +406,11 @@ static void btnet_l2cap_receive(FAR struct bt_conn_s *conn, * io_offset should be a valid IPHC header. */ - if ((iob->io_data[iob->io_offset] & SIXLOWPAN_DISPATCH_NALP_MASK) == - SIXLOWPAN_DISPATCH_NALP) + if ((frame->io_data[frame->io_offset] & + SIXLOWPAN_DISPATCH_NALP_MASK) == SIXLOWPAN_DISPATCH_NALP) { wlwarn("WARNING: Dropped... Not a 6LoWPAN frame: %02x\n", - iob->io_data[iob->io_offset]); + frame->io_data[frame->io_offset]); ret = -EINVAL; } else @@ -421,7 +421,7 @@ static void btnet_l2cap_receive(FAR struct bt_conn_s *conn, /* 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