diff --git a/drivers/at86rf231/at86rf231_tx.c b/drivers/at86rf231/at86rf231_tx.c index 6976e8dcae51bb1d6bb1aa0dcd16cea849ecf333..8f7072093753c21871f28cfaab58f45f64ca5e5c 100644 --- a/drivers/at86rf231/at86rf231_tx.c +++ b/drivers/at86rf231/at86rf231_tx.c @@ -17,7 +17,7 @@ static void at86rf231_xmit(uint8_t *data, radio_packet_length_t length); static void at86rf231_gen_pkt(uint8_t *buf, at86rf231_packet_t *packet); -static uint8_t sequenz_nr; +static uint8_t sequence_nr; int16_t at86rf231_send(at86rf231_packet_t *packet) { @@ -47,9 +47,9 @@ int16_t at86rf231_send(at86rf231_packet_t *packet) } packet->frame.src_pan_id = at86rf231_get_pan(); - packet->frame.seq_nr = sequenz_nr; + packet->frame.seq_nr = sequence_nr; - sequenz_nr += 1; + sequence_nr += 1; // calculate size of the frame (payload + FCS) */ packet->length = ieee802154_frame_get_hdr_len(&packet->frame) + diff --git a/drivers/cc2420/cc2420_tx.c b/drivers/cc2420/cc2420_tx.c index 0a5514bda6f35c4439d3bf0423bc1f69a9e0c4af..e55cb3a1cc4ec8a1bdb5b1ae174c00e85d9b48cf 100644 --- a/drivers/cc2420/cc2420_tx.c +++ b/drivers/cc2420/cc2420_tx.c @@ -22,7 +22,7 @@ #include "debug.h" static void cc2420_gen_pkt(uint8_t *buf, cc2420_packet_t *packet); -static uint8_t sequenz_nr; +static uint8_t sequence_nr; static bool wait_for_ack; radio_tx_status_t cc2420_load_tx_buf(ieee802154_packet_kind_t kind, @@ -71,7 +71,7 @@ radio_tx_status_t cc2420_load_tx_buf(ieee802154_packet_kind_t kind, } /* sequence number */ - hdr[2] = sequenz_nr++; + hdr[2] = sequence_nr++; /* variable-length fields */ int idx = 3; @@ -190,7 +190,7 @@ radio_tx_status_t cc2420_transmit_tx_buf(void) /* a packet has arrived, read the arrived data */ cc2420_read_fifo(ackbuf, ACK_LENGTH); if (ackbuf[0] == 0x02 /* ack packet in buffer */ - && (ackbuf[2] == sequenz_nr - 1)) /* correct sequence number */ + && (ackbuf[2] == sequence_nr - 1)) /* correct sequence number */ return RADIO_TX_OK; } return RADIO_TX_NOACK; @@ -243,9 +243,9 @@ int16_t cc2420_send(cc2420_packet_t *packet) } packet->frame.src_pan_id = cc2420_get_pan(); - packet->frame.seq_nr = sequenz_nr; + packet->frame.seq_nr = sequence_nr; - sequenz_nr += 1; + sequence_nr += 1; /* calculate size of the package (header + payload + fcs) */ packet->length = ieee802154_frame_get_hdr_len(&packet->frame) +