From bb7b049f00c45e7c3cdd7dae67d10a26bf9383dc Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 24 Aug 2010 21:03:39 -0300 Subject: [PATCH] Literature consistently calls the Link Quality Indication LQI, not LQ. So do we now. - atrf/fw/atspi/ep0.c: changed LQ to LQI in comments - atrf/tools/atspi-txrx/atspi-txrx.c (receive): changed LQ to LQI in comment and in diagnostic output --- atrf/fw/atspi/ep0.c | 6 +++--- atrf/tools/atspi-txrx/atspi-txrx.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/atrf/fw/atspi/ep0.c b/atrf/fw/atspi/ep0.c index 010acd0..2953878 100644 --- a/atrf/fw/atspi/ep0.c +++ b/atrf/fw/atspi/ep0.c @@ -58,7 +58,7 @@ extern void reset_rf(void); static const uint8_t id[] = { EP0ATSPI_MAJOR, EP0ATSPI_MINOR, HW_TYPE }; -static __xdata uint8_t buf[MAX_PSDU+3]; /* command, PHDR, and LQ */ +static __xdata uint8_t buf[MAX_PSDU+3]; /* command, PHDR, and LQI */ static uint8_t size; @@ -172,9 +172,9 @@ static __bit my_setup(struct setup_request *setup) __reentrant return 1; case ATSPI_FROM_DEV(ATSPI_BUF_READ): debug("ATSPI_BUF_READ\n"); - if (setup->wLength < 2) /* PHR+LQ */ + if (setup->wLength < 2) /* PHR+LQI */ return 0; - if (setup->wLength > MAX_PSDU+2) /* PHR+PSDU+LQ */ + if (setup->wLength > MAX_PSDU+2) /* PHR+PSDU+LQI */ return 0; nSS = 0; spi_send(AT86RF230_BUF_READ); diff --git a/atrf/tools/atspi-txrx/atspi-txrx.c b/atrf/tools/atspi-txrx/atspi-txrx.c index 8a575b8..ed7f4b3 100644 --- a/atrf/tools/atspi-txrx/atspi-txrx.c +++ b/atrf/tools/atspi-txrx/atspi-txrx.c @@ -82,7 +82,7 @@ static void set_power(usb_dev_handle *dev, double power) static void receive(usb_dev_handle *dev) { uint8_t irq; - uint8_t buf[MAX_PSDU+1]; /* PSDU+LQ */ + uint8_t buf[MAX_PSDU+1]; /* PSDU+LQI */ int n, ok, i; uint8_t lq; @@ -124,7 +124,7 @@ static void receive(usb_dev_handle *dev) } ok = !!(atspi_reg_read(dev, REG_PHY_RSSI) & RX_CRC_VALID); lq = buf[n-1]; - fprintf(stderr, "%d bytes payload, CRC %s, LQ %u\n", + fprintf(stderr, "%d bytes payload, CRC %s, LQI %u\n", n-3, ok ? "OK" : "BAD", lq); for (i = 0; i != n-3; i++) putchar(buf[i] < ' ' || buf[i] > '~' ? '?' : buf[i]);