openthread: rename shadow variables

Rename shadow variables found by -Wshadow.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-08-09 12:46:22 -07:00 committed by Carles Cufí
parent 842a65914f
commit 50a20f7b62

View file

@ -573,14 +573,14 @@ void platformRadioProcess(otInstance *aInstance)
bool event_pending = false;
if (is_pending_event_set(PENDING_EVENT_FRAME_TO_SEND)) {
struct net_pkt *tx_pkt;
struct net_pkt *evt_pkt;
reset_pending_event(PENDING_EVENT_FRAME_TO_SEND);
while ((tx_pkt = (struct net_pkt *) k_fifo_get(&tx_pkt_fifo, K_NO_WAIT)) != NULL) {
while ((evt_pkt = (struct net_pkt *) k_fifo_get(&tx_pkt_fifo, K_NO_WAIT)) != NULL) {
if (IS_ENABLED(CONFIG_OPENTHREAD_COPROCESSOR_RCP)) {
net_pkt_unref(tx_pkt);
net_pkt_unref(evt_pkt);
} else {
openthread_handle_frame_to_send(aInstance, tx_pkt);
openthread_handle_frame_to_send(aInstance, evt_pkt);
}
}
}
@ -829,7 +829,7 @@ int8_t otPlatRadioGetRssi(otInstance *aInstance)
{
int8_t ret_rssi = INT8_MAX;
int error = 0;
const uint16_t energy_detection_time = 1;
const uint16_t detection_time = 1;
enum ieee802154_hw_caps radio_caps;
ARG_UNUSED(aInstance);
@ -846,7 +846,7 @@ int8_t otPlatRadioGetRssi(otInstance *aInstance)
* Blocking implementation of get RSSI
* using no-blocking ed_scan
*/
error = radio_api->ed_scan(radio_dev, energy_detection_time,
error = radio_api->ed_scan(radio_dev, detection_time,
get_rssi_energy_detected);
if (error == 0) {