Date:2010-08-24 12:17:42 (9 years 25 days ago)
Author:Werner Almesberger
Commit:2514804a796dbdcbf1130dd86d37ee3b2f1f5ea5
Message:Setting the transmit power was broken. (And LQ works, by the way.)

- atrf/tools/atspi-txrx/atspi-txrx.c (set_power): don't wrap around at
minimum power to maximum power
Files: atrf/tools/atspi-txrx/atspi-txrx.c (1 diff)

Change Details

atrf/tools/atspi-txrx/atspi-txrx.c
7272{
7373    int n;
7474
75    for (n = 0; n != sizeof(tx_pwr)/sizeof(*tx_pwr); n++)
75    for (n = 0; n != sizeof(tx_pwr)/sizeof(*tx_pwr)-1; n++)
7676        if (tx_pwr[n] <= power)
7777            break;
7878    atspi_reg_write(dev, REG_PHY_TX_PWR, TX_AUTO_CRC_ON | n);

Archive Download the corresponding diff file



interactive