net: openthread: Set information about ACK FPB on receive

Set information about Frame Pending Bit from the ACK response in the
frame passed to OpenThread.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2020-03-20 12:21:34 +01:00 committed by Jukka Rissanen
commit 6afdd613d1

View file

@ -281,6 +281,8 @@ static void openthread_handle_received_frame(otInstance *instance,
recv_frame.mChannel = platformRadioChannelGet(instance);
recv_frame.mInfo.mRxInfo.mLqi = net_pkt_ieee802154_lqi(pkt);
recv_frame.mInfo.mRxInfo.mRssi = net_pkt_ieee802154_rssi(pkt);
recv_frame.mInfo.mRxInfo.mAckedWithFramePending =
net_pkt_ieee802154_ack_fpb(pkt);
#if defined(CONFIG_NET_PKT_TIMESTAMP)
struct net_ptp_time *time = net_pkt_timestamp(pkt);