Skip to content

Commit

Permalink
Merge branch 'bugfix/add_lqi_transmission' into 'master'
Browse files Browse the repository at this point in the history
openthread: add transmission of LQI

See merge request espressif/esp-idf!22918
  • Loading branch information
chshu committed Mar 28, 2023
2 parents 98b7572 + 7b735a8 commit 37ac0ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/openthread/port/esp_openthread_radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ void IRAM_ATTR esp_ieee802154_transmit_done(const uint8_t *frame, const uint8_t
s_ack_frame.mPsdu = (uint8_t *)(ack + 1);
s_ack_frame.mChannel = ack_frame_info->channel;
s_ack_frame.mInfo.mRxInfo.mRssi = ack_frame_info->rssi;
s_ack_frame.mInfo.mRxInfo.mLqi = ack_frame_info->lqi;
s_ack_frame.mInfo.mRxInfo.mTimestamp = ack_frame_info->timestamp;
}

Expand All @@ -587,6 +588,7 @@ static void IRAM_ATTR convert_to_ot_frame(uint8_t *data, esp_ieee802154_frame_in
radio_frame->mLength = *data;
radio_frame->mChannel = frame_info->channel;
radio_frame->mInfo.mRxInfo.mRssi = frame_info->rssi;
radio_frame->mInfo.mRxInfo.mLqi = frame_info->lqi;
radio_frame->mInfo.mRxInfo.mAckedWithFramePending = frame_info->pending;
radio_frame->mInfo.mRxInfo.mTimestamp = esp_timer_get_time();

Expand Down

0 comments on commit 37ac0ad

Please sign in to comment.