openthread: rename shadow variables
Rename shadow variables found by -Wshadow. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
842a65914f
commit
50a20f7b62
1 changed files with 6 additions and 6 deletions
|
@ -573,14 +573,14 @@ void platformRadioProcess(otInstance *aInstance)
|
||||||
bool event_pending = false;
|
bool event_pending = false;
|
||||||
|
|
||||||
if (is_pending_event_set(PENDING_EVENT_FRAME_TO_SEND)) {
|
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);
|
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)) {
|
if (IS_ENABLED(CONFIG_OPENTHREAD_COPROCESSOR_RCP)) {
|
||||||
net_pkt_unref(tx_pkt);
|
net_pkt_unref(evt_pkt);
|
||||||
} else {
|
} 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;
|
int8_t ret_rssi = INT8_MAX;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
const uint16_t energy_detection_time = 1;
|
const uint16_t detection_time = 1;
|
||||||
enum ieee802154_hw_caps radio_caps;
|
enum ieee802154_hw_caps radio_caps;
|
||||||
ARG_UNUSED(aInstance);
|
ARG_UNUSED(aInstance);
|
||||||
|
|
||||||
|
@ -846,7 +846,7 @@ int8_t otPlatRadioGetRssi(otInstance *aInstance)
|
||||||
* Blocking implementation of get RSSI
|
* Blocking implementation of get RSSI
|
||||||
* using no-blocking ed_scan
|
* 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);
|
get_rssi_energy_detected);
|
||||||
|
|
||||||
if (error == 0) {
|
if (error == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue