[riot-commits] [RIOT-OS/RIOT] 5eb5c3: at86rf2xx: split out isr transmit complete handling

benpicco noreply at github.com
Fri Feb 7 13:54:55 CET 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 5eb5c3c42c19e0f7d6a20f2c430bcdf3128ea2b6
      https://github.com/RIOT-OS/RIOT/commit/5eb5c3c42c19e0f7d6a20f2c430bcdf3128ea2b6
  Author: Koen Zandberg <koen at bergzand.net>
  Date:   2019-11-16 (Sat, 16 Nov 2019)

  Changed paths:
    M drivers/at86rf2xx/at86rf2xx_netdev.c

  Log Message:
  -----------
  at86rf2xx: split out isr transmit complete handling


  Commit: 42d54600f71ea22734ace5725307ff0ae0c99977
      https://github.com/RIOT-OS/RIOT/commit/42d54600f71ea22734ace5725307ff0ae0c99977
  Author: Koen Zandberg <koen at bergzand.net>
  Date:   2020-02-07 (Fri, 07 Feb 2020)

  Changed paths:
    M drivers/at86rf2xx/at86rf2xx_netdev.c

  Log Message:
  -----------
  at86rf2xx: fix receive before send detection

The at86rf2xx radio handled a transfer complete condition with the radio
in the BUSY_TX_ARET state as a finished transmission. This condition and
state also occurs when a reception occurs just before switching to
transmitting. This would cause a condition where first a TX_COMPLETE was
signalled and second a RX_COMPLETE was signalled. The network stack
would then read the transmitted frame as a received frame.

The patch fixes the errornous RX callback by only submitting the
TX_COMPLETE condition when there are at least 2 frames pending
(at86rf2xx::pending_tx).


  Commit: 16ab89bf287b32d5edfe16bc09872a0f048828d8
      https://github.com/RIOT-OS/RIOT/commit/16ab89bf287b32d5edfe16bc09872a0f048828d8
  Author: benpicco <benjamin.valentin at ml-pa.com>
  Date:   2020-02-07 (Fri, 07 Feb 2020)

  Changed paths:
    M drivers/at86rf2xx/at86rf2xx_netdev.c

  Log Message:
  -----------
  Merge pull request #12728 from bergzand/pr/at86rf2xx/fix_recv_before_send

at86rf2xx: fix receive before send detection


Compare: https://github.com/RIOT-OS/RIOT/compare/3514eecf9d72...16ab89bf287b


More information about the commits mailing list